Question

Posted · Report post

I'm having some issues getting 2 different templates to save their own unique and different sections, respectively.  I have one template for the "Home Page" and another template for an "About Us" page.  Both templates have the same fixed navbar, nothing in the "Header Global Scope Region", various sections and widgets in the "Template Local Scope Region", and share a footer menu in the "Footer Global Scope Region".

 

I have added a full-width section between the "Header Global Scope Region" and the "Template Local Scope Region" to the home page template in order to hold a Hero Unit.  I needed to put this hero unit inside a full-width section so it could have a full-width background color.  If I put this hero unit inside the "Template Local Scope Region", a full-width background color is not possible on the hero unit's row alone, as it will also give a full-width background color to the entire body of the "Template Local Scope Region" thereby affecting the other widgets and columns on the home page.  

 

I do not want this hero unit or the full-width section it is contained within to appear on the "About Us" template.  So back on the "Home Page" template, I only filled out the hero unit's local scope section options and left the global options blank.  This however does not prevent the hero unit full-width section from displaying on the "About Us" template.  It just displays the default hero unit's global settings.

 

How can I make the full-width section containing a hero unit only display on the "Home Page" template and not on the "About Us" template?  

 

Are all custom full-width sections forced to be globally applied to all templates?

 

It seems to me that one template's (non-global) regions and sections shouldn't be concerned with another template's (non-global) regions and sections.  Isn't that the point of having different templates so I can give sub pages a different layout from the home page?

 

Any help would be much appreciated.

 

Thanks,

Wesley

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

Hi Wesley

 

To resolve the area background color issue add a new full widith section area http://screencast.com/t/1zpn22NY and then place the hero unit inside there, set the color on that full width section area and it will leave the rest of the page content area as standard.

 

It sounds like both pages are using the same template, did you create one template from the other? If so after creating it and saving did you make sure it was actually loaded on that page and saved? If you have Pro Tools installed you should see in the wp admin bar at the top which template the page is currently using, do they both state they're using different templates? The local regions shouldn't appear on other templates at all, unless its a special page like category,archive, search etc.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi James,

 

That's precisely what I did previously to get a full-width background on the hero unit.

 

My problem is with this full-width section that's holding the hero unit.  I only added it to the home page template, but it also shows up when I load the "About" template on that page.  Also any changes I make and publish to the About template carry over to the home page template when I switch back to the home page.

 

This screen http://screencast.com/t/hsRcBivTqbQ shows my "Customhomepage" template with the hero unit as it's supposed to be.  It also shows some stuff above the hero unit that I added to the "About" template.  That text box, share box, and navbar shouldn't be a part of the "Customhomepage" template.

 

This screen http://screencast.com/t/uDPIURm9wd shows my "About" template with the hero unit that I added only to the home page template.  It's showing the default global settings, but it shouldn't even be a part of this page.  The text box, share box, and navbar are the only things that should show up.

 

Furthermore, why are both of these templates using the same full-width section?

 

Thanks,

Wesley

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Ah many thanks.  That did the trick.  For some reason I thought a full-width region had to be siblings with the header/template/footer scope regions, which is why I had it outside the template region.  I put it inside the template region, as you said, and now the different templates are only concerned with what's in their own respective template regions.

 

Thanks again!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for informing us the issue has been resolved.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I think I am having a similar issue as this one, but still not getting the the content to be idependent of the template as I would like.  Here is my issue:

 

I have a template called "Products"  This template is shared between 5 different pages/products.

 

Obviously, the WP Content/Loop is unique on every page, but I would like a full width hero image to also be unique on each page (ideally controlled through the page or a widget and not through the DMS editor, but alright it that is going to be the easiest solution for now). 

 

I am trying to insert a RevSlider (but open to other suggestions on tool, widget, plugin...) on the page that will display a lifestyle image below the "Header" and above a two column layout (Col 1 = custom menu/sub nav and Col 2 = WP Content/Loop) that will be unique to the page/product.

 

For example, on the Rancher page I want a photo of a ranch and on the Beach page, it has to be a beach.

 

Today, everything I do puts the same image on all pages using this template.  I am trying to find a solution that doesn't require a unique template for every page of the site.

 

It looks like I am inserting the RevSlider in as a Local Option, but perhaps I am still doing something wrong.  I am attaching a screenshot.

 

http://www.screencast.com/t/4j3BOeNj

 

Thanks,

Scott

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

circ2013 - If you want to have a unique image on specific pages, then what you're going to need to do is load the template you want to use on the page, then unlink that template. Then proceed to make sure your changes, that way the changes will only be specific to that page and not effect other pages using that template.

 

https://cloudup.com/cd6ifEGUguZ

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I knew it was going to be something easy like that.  Thank you once again.

 

Scott

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

No problem.

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