Support » Plugin: Mesh - Page Builder » Mesh Sections not displaying on front page

  • Resolved palomnik

    (@palomnik)


    I am able to create pages with mesh 3 column sections with ease, and it will display properly as a separate page. However, I want the page and the sections to show up as select pages featured as dropdowns on the main page of a twenty seventeen based child theme. Any content in the main page body shows up, but not the mesh sections. How do I fix this?

    Also is it possible to create a content type that is only mesh sections without a page body?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Aaron Ware

    (@aware)

    Hey @palomnik I’m not sure I entirely follow the first question.

    I want the page and the sections to show up as select pages featured as dropdowns on the main page of a twenty seventeen based child theme.

    If you are doing custom dev work. Are you doing a custom loop and using the_content();? If so the Mesh sections *should* display as well. BUT if it doesn’t and you are “under the hood” so to speak. You can take a look at get_mesh_section(); on github. You have the ability to pull in the sections of any post.

    Also is it possible to create a content type that is only mesh sections without a page body

    Out of the box Mesh doesn’t disable “The Editor” though we have had requests for it. I am not keen on removing any default functionality from WordPress core ever based on functionality in Mesh. There are other plugins out there that can do that for you though. Additionally there is nothing stoping you from keeping the page content blank.

    Hi Aaron,

    Twenty Seventeen is now the new default WP theme that ships with WP. I am just getting used to it. The front page template is different because it allows pages to be displayed as sections using the “infinite scroll” landing page metaphor.

    I have not been able to find any reference to “the_content();” or to “get_mesh_section();” When I create a page with mesh sections, the page displays fine independently (presumably using the normal page template) but not as a section on the front_page_template. There are just a few too many layers for me to figure out what needs to go where.

    When I load the front page, the section containing the page with mesh sections loads the main body, but not the mesh sections.

    • This reply was modified 2 years, 6 months ago by  palomnik.

    I am also noticing that on the regular page, the mesh section is displaying twice for some reason.

    Ok the reason that the section was displaying twice was that I had added the following to the main page template:

    <?php
    if ( function_exists( ‘mesh_display_sections’ ) ) {
    mesh_display_sections();
    }
    ?>

    I removed that and the problem went away. I may be able to get this to work if I can find the correct file to insert that in.

    OK – problem solved!

    I added that snippet:

    <?php
    if ( function_exists( ‘mesh_display_sections’ ) ) {
    mesh_display_sections();
    }
    ?>

    to the page: content-front-page-panels.php

    Thanks for your help – and if anyone else is using Twenty Seventeen – there is the answer.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Mesh Sections not displaying on front page’ is closed to new replies.