We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Default site (menu entry)

How Do I?

Claus's avatar
Claus
35 posts
2 years ago
Claus's avatar Claus

Hi,

how do I create a new menu entry in the default site of EE7? My guess is, that I have to edit one of the templates, but I haven’t found the right one, so far. For the present look, see the attachment.

TIA,

Claus

       
Jared Chesebro's avatar
Jared Chesebro
15 posts
2 years ago
Jared Chesebro's avatar Jared Chesebro

That file is a partial called snp_main_nav.html.

In the backend you have to go to the template partials section. You can also edit the file located in /system/user/templates/default_site/_partials.

       
Claus's avatar
Claus
35 posts
2 years ago
Claus's avatar Claus

Thanks, found it. I managed to create a new template group ‘testing’ & an index page with some content, but there are no style sheets. How do I reference those?

Claus

? 1
       
Jared Chesebro's avatar
Jared Chesebro
15 posts
2 years ago
Jared Chesebro's avatar Jared Chesebro

I typically manage my css and js outside of EE in /public_html/assets/css and /public_html/assets/js and call them as you normally would in an html document.

       
Claus's avatar
Claus
35 posts
2 years ago
Claus's avatar Claus

Oh, I see.Thanks.

Claus

P. S.: I have installed EE 7 locally, and I tried … <link rel=”stylesheet” type=”text/css” href=”localhost/public_html/css/style_sheets.css”> …, but this didn’t work. The location of the style sheets is /public_html/css/style_sheets.css. My question: What would be the correct location?

       
Jared Chesebro's avatar
Jared Chesebro
15 posts
2 years ago
Jared Chesebro's avatar Jared Chesebro

The answer to that question isn’t going to be the same for every application. It seems like you’ll want to make it relative to your site’s url so based on your example: <link rel="stylesheet" href="/css/style_sheets.css">

If you have lots of questions unrelated to the original thread I highly recommend you visit the ExpressionEngine Slack.

       
Claus's avatar
Claus
35 posts
2 years ago
Claus's avatar Claus

> If you have lots of questions unrelated to the original thread I highly recommend you visit the ExpressionEngine Slack.

Ok, thanks. It seems, though, that I have to be invited by someone on Slack. I cannot login to the EE workspace.

Claus

       
Claus's avatar
Claus
35 posts
2 years ago
Claus's avatar Claus

Hi again,

regarding the original thread: I’m asking myself how do I accomplish it that the menu entries are horizontally aligned (see my first question in this thread)? In the default site, it is accomplished via a css class main-nav, but the original style sheets unfortunately have no structure whatsoever & are barely legible.

TIA,

Claus

P. S.: Found the solution myself.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.