WordPress.org

Forums

Projects by WooThemes
[resolved] sidebar settings for project pages not inheriting parent page attributes (10 posts)

  1. neilmccreadie
    Member
    Posted 1 year ago #

    Hi there,

    I'm using Canvas with Projects by Woothemes and am having a problem in that the sidebar is visible when viewing an individual project. The sidebar is also visible on the page set as the projects page in the settings, even though this page itself is set to have no sidebar. To workaround this I used the shortcode on a normal page set to have no sidebar, but as soon as I view a single project the sidebar comes back in.

    Any ideas, or am I missing something obvious?

    thanks.

    https://wordpress.org/plugins/projects-by-woothemes/

  2. neilmccreadie
    Member
    Posted 1 year ago #

    in looking at the canvas portfolio settings as well as the woocommerce settings in canvas, they both have options for setting the page layout, so it seems to me that this needs to be added to the Projects plugin as well in order to control things independently of the rest of the site's global layout settings. Any chance you could let me know if this will be added to the next release and if so when this might be as I'm needing to use this on a site I'm busy with and was hoping to go live with it in the next few days. Otherwise any interim fix that I can apply?

    thanks.

  3. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    Hi there,

    We don't be adding those kind of layout options to the plugin as it's simply not possible to account for all themes.

    FYI specifying a page template will not affect your main portfolio page. The reason being that this isn't technically a page - it is a post type archive which the portfolio page redirects to - make sense? So to adjust that page you need to use the hooks included in Projects or modify the archive-projects.php template file.

    The same goes for the single pages. You will need to unhook the sidebar or modify the single-project.php template file.

  4. neilmccreadie
    Member
    Posted 1 year ago #

    ok, thanks James - makes sense. will give it a bash.

  5. digitalisfun
    Member
    Posted 1 year ago #

    Hi James

    I was having the same issue with Canvas and just came across this topic. Given that projects is due to eventually replace the current portfolio functionality, is this going to be the case that we will need to modify things to get rid of the sidebar, rather than just using the built in layout options?

    There are going to be a lot of Canvas users who might be wondering the same so this might be handy to know in your documentation.

    Greg.

  6. digitalisfun
    Member
    Posted 1 year ago #

    Hi James

    I had a look at the hooks for this and unhooking the sidebar still leaves the body classes for two columns rather than one. Can you advise on the best way to get a single column layout for the main projects page using Canvas?

    Thanks,

    Greg.

  7. rsandilands
    Member
    Posted 11 months ago #

    I just want to follow up on what digitalisfun commented on above.

    It's not enough to unhook the projects_get_sidebar function from the projects_sidebar action as the body tag still carries the "two-col-left" class which impacts the width of the div#main and sets it at 64.89% rather than 100%

  8. jameskoster
    Member
    Plugin Author

    Posted 11 months ago #

    Hey,

    Once you've unhooked the sidebar you just need to add a couple of lines of css.

    Something like

    .post-type-archive-project #main { width: 100%; }

    Thanks.

  9. NKTeam
    Member
    Posted 9 months ago #

    Can someone tell me where and how to "unhook the sidebar" - I'm new to hooks, so any help is appreciated! I'm also using the Canvas theme.
    Thanks!

  10. kesness
    Member
    Posted 8 months ago #

    I'm also new to hooks and looking to accomplish this. Any help on the "unhooking" would be appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Projects by WooThemes
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.