Jump to content

Archived

This topic is now archived and is closed to further replies.

nandorj78

Header

Recommended Posts

nandorj78+    8
nandorj78

Hi,

I put a media box inside the header area... The thing is I need 2 different media boxes, one for the main site and another one for just one page on the entire site. I don't know how to change the media box on a specific page only. I've put local settings option (although it's put on the header setting). It doesn't matter if I set it as local, it will appear only as global.

 

Can I hide the header from a specific page, then?

Share this post


Link to post
Share on other sites
Rob    547
Rob

You can hide the entire header for a specific page.

 

Add code like this, replacing XX with the actual page ID number (determined in WP)

.page-id-XX #header {display: none !important;}


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
nandorj78+    8
nandorj78

Where should I enter this code?

Share this post


Link to post
Share on other sites
Rob    547
Rob

It would go in the  Custom area under Custom CSS.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
nandorj78+    8
nandorj78

It didn't do the trick. The text above even appeared on the page, on the right top. Above everything

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Can you provide a link to your site please.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Firstly, the code didn't work as you have added it to the incorrect place, it appears you have added it to the custom scripts editor and not the custom CSS/LESS editor. Also, you haven't edited Robs code and replaced XX with the pages id.

 

At present, it is not possible to have different headers on different pages, as the Header area is a global template area, meaning that anything added to this area will be displayed throughout the site.

 

However, what you can do is this, click edit on the section or sections you wish to hide on that specific page, then in the each of the styling classes add the following:

 

hide-me

 

Once you have added this class, click publish. Now, goto </> Custom and in the CSS/LESS editor add the following code.

 

.page-id-2 {
.hide-me {
     display: none;
   }
}

 

Now you will need to locate your pages id and replace the id of your page with the id in the code i.e. replace 2 in the code with your pages id. You can find your pages id in the body tag when viewing your sites code via PageSource or Chromes dev tools.

 

What this will do is, basically hide any section you add hide-me to the styling classes field, as long as it is on the page you added the id to in the code (if that makes sense).


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • flourishdesignstudio
      By flourishdesignstudio
      Hello,
      I have an older site that was built using PageLines several years ago (prior to the release of DMS). I wanted to leverage some of the power of your new PL5 plugin but the theme prevents be from adding any generated custom sidebars to the theme (through the drag and drop interface) and does not allow me to add any PL5 sections/containers/etc to the header or footer. Is there any way to easily override that or am I stuck only using PL5 in the content areas of the site?
      Thanks so much for the help!
    • JP
      By JP+
      Hello,
      How can you set the translations with platform5, the parts that are not in pages or posts? Texts and images…
    • romanondrasek
      By romanondrasek
      hi all, I have some trouble using PL5 on my site. 
      I used plugins for event calendar (event on) and plugin (timetable responsive scheduler for WP) for schedule (classes) in the gym.
      The problem is, that post from this 2 plugins are shown without menu in header and footer. (I setup header and footer) in the page editor for all type of page. 
      When I create a lesson, it creates posts with slug (I have a slug "lekce" & event for events).
      I try to edit the post with PL editor, but editor is not opening on the post.

      Do you have some idea where should be some problem? Thanx so much.
      here are links for the sites :
      site with schedule :
      http://www.myfit.cz/rozvrh/
      site of one of the class (pilates)
      http://www.myfit.cz/lekce/pilates/
      site with calendar :
      http://www.myfit.cz/kalendar/
      7 side with one event from the calendar :
      http://www.myfit.cz/event/pilates-instruktor-akreditovana-licence/?ri=1
      when I have my site on DMS2 it was working :-(
       
       
    • Barnaby Skinner
      By Barnaby Skinner+
      Hey team,
      Really simple question: where would I add code to a specific page header? I can see in the settings I can add code to the global header, but can't see how to do it for a single specific page. It's related to facebook pixel tracking
      Cheers
    • Le Chef Est Une Femme
      By Le Chef Est Une Femme+
      Hey everyone
      I am very sorry if this question has a "deja vu"  taste but I have been looking for more than 2 hours a way to add a phone number in the top right corner of my header website.
      Before asking that, I have read many of the questions related to that subject, from hooks and action map to function.php and hooker plugin but I am very lost. Plus many links kindly given by some of you are now 404 pages
      Is there anyone willing to help me find the easiest way to add this number please ? 
      In advance, thank you 
      www.upgrad.paris
×