• Hi guys

    My front page is made with the following settings. Side wide template (Customizr) and site wide Nimble specific header and footer. I wish to move the text section that I have created at the bottom of my front page in between the featured page and the blog posts. I also absolutely want to have both the featured page AND the blog posts on my front page.
    Problem: with side wide Customizr template, it’s impossible to insert any section between featured pages and blog posts on the frontpage apparently.
    Problem 2. If I now switch the Nimble builder entirely for my front page, I can re-create the blog section but NOT the featured pages which doesn’t exist as a section in Nimble builder.
    The easiest for me would be to keep the Customizr template but get a code to insert my text section in between the featured pages and the blog posts. Any suggestions would be highly appreciated! Thanks

    The page I need help with: [log in to see the link]

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

    (@nikeo)

    Hello,
    Nimble Builder includes an API to let developers add custom locations in which you can drag and drop sections.
    This is documented here : https://docs.presscustomizr.com/article/348-adding-custom-locations-to-your-wordpress-theme-with-nimble-builder

    Thread Starter laurentlanglais

    (@laurentlanglais)

    Thank you Nicolas. I copied the code in my child theme function php and it didn’t work. I replace the header of the example by “column”, which I thought would be the name for such general text section. Should I put another name please?

    Thread Starter laurentlanglais

    (@laurentlanglais)

    I’ve tried both with ‘my_nimble_column_location’ or “‘my_nimble_content_location” and so far none gave me the option to move a content section in between featured pages and the blog on the front page. Thanks for the help, I’m probably not doing that right…

    Thread Starter laurentlanglais

    (@laurentlanglais)

    I still haven’t been able to solve this. I am a bit clueless with coding, while still understanding the overall logic of the post you’ve linked to. What I would need is the following if possbible
    1. What is the name of a general nimble builder section that I want to move/put in the code? In the example given: my_nimble_header_location, should I replace by: my_nimble_main_content_location, or my_nimble_main_location, my_nimble_body_location, my_nimble_container_location or something else please?
    2. Once it is done, which file do I need to copy from the parent theme to include the hook function – is it Main Index template, or Custom Page template?
    3. In this file do I just add <?php do_action(‘my_nimble_XXX_location’); ?> and it should work?

    As a reminder I want to edit my front page template and being able to insert a section between featured pages and the blog/posts section.

    I’d really appreciate being guided a bit more because so far it’s not working. Thank you!

    Plugin Author presscustomizr

    (@nikeo)

    1. The name of your custom location can be anything you want.
    About 2. and 3. you need to explore the code of the theme and see if you can use and existing hooks, or if you need to override a template in a child theme.

    I won’t go into further details on coding. You may ask yourself why. Because I don’t provide detailed guidance on coding on the forum or via email anymore. I had bad experiences with code sharing in the past because beginner developers can break their website if the code is not used properly.
    And in many cases, I got desperate assistance requests to debug sites with wrong implementation of the code that I shared. So I end up implementing the code myself, testing it, and even sometimes maintaining it if users were not able to modify it. And in several cases, users even got pissed of and decided to post a bad review to the theme or the plugin. I know, it seems unbelievable, but this is unfortunalety very frequent and I don’t take that risk anymore.
    I rather recommend to understand how the hooks API works in WordPress, and get familiar with child theme development. It’s also very important to always test your code on a staging website, especially for beginners.

    With that in mind, the documentation provides enough information for WP developers to add a location to Nimble Builder.
    Thanks for your understanding. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Section between featured pages and blog posts?’ is closed to new replies.