Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #547868

    Hello, I have a Pods custom detail page (custom post created with Pods) that doesn’t belong to any of the Control Panel Pages.
    The page is rendered through a new file page-cantieri-detail.php placed in the Enfold theme directory.
    The page should render a left sidebar created in the Widgets Backend (custom sidebar).
    How can I (runtime in php code):
    1. Set the left custom sidebar to be rendered
    2. Set the breadcrumbs
    3. Set the header title (in the same bredcrumbs bar)

    Thank you

    • This topic was modified 8 years, 11 months ago by facubesrl.
    #548415

    Hey!

    I’d suggest using Enfold’s page.php contents for your custom template file, should display the sidebar, breadcrumbs and header title.

    Regards,
    Josue

    #548614

    Thank you Josue, I did it and this was the result:
    http://www.globalmarineservice.it/cantieri/amico-co
    The page should look instead like (except the right part of the page obviously):
    http://www.globalmarineservice.it/cantieri/
    The problem is that the listing page is associated to a real page, the detail page instead isn’t associated to any real page (Pods allows to create jolly pages associated with a php template) and so there aren’t options to set in the WordPress Bacheca; this will causes the following issues:

    1. The sidebar is the default sidebar because the page calls get_sidebar() and and there isn’t any specific sidebar associated; is it possible to hook into the get_sidebar() enfold method to be able to set a custom sidebar ?
    2. The breadcrumbs displays on the link to the home page because no hierarchy is defined; is it possible to hook into the generate breadcrumbs Enfold method to be able to add some links (to cantieri listing)
    3. The title of the page (at the left blue bar) isn’t rendered because no Enfold option associated with the page is set; is it possible to hook into the title generation function of Enfold to be able to set the title in the blue bar ?

    Thank you very much.
    Alessandro

    #548731

    Hey!

    1. The get_sidebar function accepts a parameter which sets which sidebar shows.

    2. The breadcrumbs function resides in /enfold/framework/php/class-breadcrumb.php.

    3. The avia_title function resides in /enfold/functions-enfold.php, line 316.

    Cheers!
    Josue

    • This reply was modified 8 years, 11 months ago by Josue.
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.