Jump to content
bobbekaer

Change Header On Posts According To Its Category?

Recommended Posts

bobbekaer    0
bobbekaer

Hi :-)

 

A few days ago I got help with using features in the header - and showing it in another size than the other features on the site I'm working on: http://bedreweb.dk/boeprojektnov12/

 

(http://www.pagelines.com/forum/topic/23735-different-sizes-on-features-in-header-and-content-area/).

 

 

Now I would like to be able to show different headers/features according to which category?

 

So whenever you see a post in category xyz you see the xyz-feature in the header....

 

:-)

Bolette

 

 

Share this post


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

OK, what you could do is this:

 

1. Go to PageLines > Drag and Drop and clone the Features Slider section in your header template, so that you have two.

2. Now on the cloned features section, click the options button and check hide by default.

3. Now go to Page Options > Page Setup > Category Template and in the Header area of Individual Page Section Control, hide the default Feature Slider and use then check to show the one you cloned that was set to hide by default.

 

So now you have you just replaced your default Feature Slider section with the cloned one but this will only show on your category page(s).

 

Now whilst still on Page Options > Category template, click on the Features Sections settings tab and then configure your Feature settings. In the "Select Feature Post Source (Optional - Defaults to Custom Post Type)" select the Post Category option.

 

This should be work for you!


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bobbekaer    0
bobbekaer

Thank you :-)

 

But I should have been more clear; my client wants to show a special header for each of his categories (16+). Do you think there is any way around that?

Share this post


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

Not sure what you mean.

 

DO you mean they want a specific header image per category or a specific feature set per category page containing 16+ images ?

 

If this is the case, that is not possible (as far as I know) out of the box. Therefore, I recommend you contact one of our Pros and ask them for assistance, it may require a custom section.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
bobbekaer    0
bobbekaer

Hi Danny

 

I mean a specific feature in header per category. I had a bad feeling this wasn't an easy solution :-) 

 

I will look at the Pros.

 

Thanks anyway :-)

Bolette

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • JP
      By JP+
      Hello,
      We are working on a 2 languages site (https://liguecardioliga.be) with wpml, and lately the call of a category in the loops section (and all the sections requiring a category to select posts) doesn't work in the translated language. It worked well until recently so I wonder if it's because of a recent update (wordpress, wpml, pagelines, a plugin?). Anyone has the same problem? a solution?
      TIA
    • 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
×