I'm using the Portfolio pages in the Executive theme but can't figure out how to add a sidebar to an interior Portfolio page. I removed the PHP code that makes the single-portfolio.php go full screen but I can't add a sidebar.
Dose anyone have a fix for this?
Please post a link to your website.
It's an interior page like this: http://www.careerbuildercommunications.com/speakersbureau/portfolio/jennifer-seith/
There's a space for a sidebar but nothing shows up.
Do you see the sidebar on the Widget page? If so, did you drag anything into it?
I did and it doesn't appear. I sent in a Helpdesk request and they said they can't help and to use the forums.
I even added a custom sidebars widget hoping that would populate a sidebar but it doesn't. I would modify the code but I'm not sure where to start.
Which custom sidebars widget did you use? Did you use the Genesis Simple Sidebars plugin?
I used a plug-in called Custom Sidebars which didn't work and I just tried Genesis Simple Sidebars which didn't work.
Essentially, all you need to do is remove this line from single-portfolio.php
/** Force full width content layout */ add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
Then, if you want to add layout support to the portfolio post type, just change the supports line in functions.php to add genesis-layouts.
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo', 'genesis-layouts' ),
Thanks Jen! I would have never come up with that solution.
Thank you both for all your help. This helps a lot Jen.
You're both very welcome! I'll mark this resolved but leave it for now.
Thanks Jen. This is absolutely fantastic. Accomplished what I wanted in such a simple way.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!