Jump to content

Archived

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

marcuscarson

Page-Specific Masthead

Recommended Posts

marcuscarson

I'm hoping to create multiple blog pages where each one only shows posts from a specific category.

 

For example:

  • Page 1: site.com/category/food
  • Page 2: site.com/category/animals
  • Page 3: site.com/category/mineral

Currently, when I try to place a masthead section with a unique title at the top of one of these pages, the same masthead section appears on all of them. I have "unlinked" the page from any sort of template, and I have tried to create a unique templates for each. In all instances, the changes I make on one appears on all the other (except for the posts that are being displayed).

 

Is it possible to do what I'm trying to accomplish? Any help is appreciated.

Share this post


Link to post
Share on other sites
Danny

HI,

 

Unfortunately, you're unable to have individual templates for category pages. The only way to do this would be to use a hook via your child themes or use the NextBox section using the following function - http://codex.wordpress.org/Function_Reference/single_cat_title

 

You will not be able to place the Masthead via a function, but you can copy the HTML used for the Masthead section and replace the <h1>...</h1> with the cat title function.

This has been added to our issue tracker as a feature enhancement.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
marcuscarson

Thank you for your help, Danny.

 

When I paste the function into a TextBox section, it does not seem to be returning any values. My process was:

  1. Insert a TextBox section
  2. Past the following function into the TextBox: 
    <?php single_cat_title('Explore Topic '); ?>
    

Am I missing any steps?

Share this post


Link to post
Share on other sites

  • Similar Content

    • yemoonyah
      By yemoonyah+
      Hi, even though I just got a SSL certificate, I can't get the green padlock to appear due to the following error:
      :A file with an insecure url of "http://yemoonyah.com/wp-content/plugins/pl-section-boxes/check.svg" was loaded via the javascript file: https://yemoonyah.com/wp-includes/js/jquery/jquery.js?ver=1.12.4 on line 3. The insecure URL may not be directly contained in the script file and may exist elsewhere."
      I figured if I delete and re-install the plugin it might fix the problem but will my boxes on the website still be there? Or do I have to redesign everything all over again if I delete the plugin and then re-install it?
    • cstudio
      By cstudio
      Hello,
      I need some help!  I am trying to add a Square booking script.  When I add it to a embed section it crashes the page editor and I am unable to save the page version.  I have tried using different browsers with the same result.
       I can add the script on the backend in the word press content area and get it to show and work, but it look terrible.  A page with in a page.  http://www.zoeanastacia.com/booking/.
      I need help getting the page editor to work properly or to make the wp content section to not look like an 90's iframe.
      Thanks
    • DonRicardoRVM
      By DonRicardoRVM+
        First of all, sorry for my bad English.  I am developing an ecommeece with wp, woocommerce, PL5 and quickshop, and I need to do some changes in the simple product grid. I want to change the classes of some divs, but I can't find the templates. 
      Also, I change the grid of the category products pages, but I didn't make it correctly.
      This is the cat archive's: http://globosdemar.com/wp/categoria-producto/camisetas-para-ninos-y-ninas/
      Can you help me?
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • poseyg
      By poseyg+
      Could someone explain exactly how the new template sync works or what it is suppose to do?
×