[Support request] Block Element – Content Template Issue

Home Forums Support [Support request] Block Element – Content Template Issue

Home Forums Support Block Element – Content Template Issue

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1971567
    Wara

    I am basically trying to do https://docs.generatepress.com/article/block-element-content-template/ this for a page, so that posts from a certain category appear in the set template. However, the template is not showing on the particular page I have selected, although the content template shows as an active element on the edit page.

    Is there a backend issue or am I missing something?

    #1972061
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to the page where it should be displayed ?

    #1972415
    Wara

    Hi David, here is the link – http://remarkablehomes.co/guides-for-buying-residential-property-singapore/

    I toggled with the “customize” function, and under homepage settings, there is a “posts” page that allows you to choose just one page?? Is that how the content template can work? Can it work on multiple pages?

    #1972588
    David
    Staff
    Customer Support

    Hi there,

    the page you linked to is a Static page.
    Block Element – Content Templates overwrite the content template, they don’t create query loops or create the grids to output content on static pages.

    You will need to set the elements display rules to a Category Archive.

    #1973990
    Wara

    Hi David, thanks for your reply. Exactly where do I go to set the elements display rules to a Category Archive?

    #1974041
    Elvin
    Staff
    Customer Support

    Hi Wara,

    Hi David, thanks for your reply. Exactly where do I go to set the elements display rules to a Category Archive?

    On the Block Element you’re working on, you should see a “Display” tab as shown here – https://share.getcloudapp.com/Qwu27pNN

    You should see a “Location” area with dropdowns, the dropdowns let you choose the page, post or taxonomy you want to apply the Content template on. 😀

    #1974106
    Wara

    Hi Elvin, thanks, that was what I did and it seems to be working.

    Is there a plugin you recommend that works well with GP for me to edit the layout of the archives page (add paragraphs, limit posts, add headings etc)?

    #1974117
    Elvin
    Staff
    Customer Support

    Is there a plugin you recommend that works well with GP for me to edit the layout of the archives page (add paragraphs, limit posts, add headings etc)?

    I believe page builder plugins will let you do this but if you only plan to do simple things then Block Element – Content Template should be enough. 😀

    Block Element – Content template allows you to edit the layout of the archive page (which I believe you already did). You can add more headings and paragraphs in it if you wish to do so.

    As for the post limiting, you can do it with pre_get_posts filter – https://developer.wordpress.org/reference/hooks/pre_get_posts/

    #1974124
    Wara

    Hi Elvin, I double checked the page, http://remarkablehomes.co/category/buyer-guides/, and I can’t quite understand why my “read more” button is appearing for 2 posts and not for 2 others?

    #1974130
    Elvin
    Staff
    Customer Support

    I wasn’t able to see it as the site is in maintenance mode. Can you temporarily disable it so we can check?

    #1974135
    Wara

    sorry, deactivated.

    #1974177
    Elvin
    Staff
    Customer Support

    For the post w/o any buttons, can you check their Excerpt field if it contains space in its metabox as explained here – https://docs.generatepress.com/article/excerpt-issues/#excerpt-not-showing

    #1974240
    Wara

    I even included an excerpt for the first article and it shows, but the buttons I am not sure where the settings are. Under “customisation” shouldn’t it apply to all posts on the page?

    #1974325
    David
    Staff
    Customer Support

    Try this instead.
    Edit the Content Template, select the Dynamic Content Block (excerpt) and disable the Read More option.
    Then below the Excerpt add a GB Button Block, add your Label ie. Read More, set the URL to # then set the Dynamic Link option to Single Post.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.