[Resolved] Add full width call to action to latest post homepage – Marketer demo site

Home Forums Support [Resolved] Add full width call to action to latest post homepage – Marketer demo site

Home Forums Support Add full width call to action to latest post homepage – Marketer demo site

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

    Hello GeneratePress team!

    I’ve always worked with static, built “from scratches” homepages easily editable with default WP tools, Elementor or whichever page builder.

    For the present project I’m on the other hand using a latest-posts homepage and I have no clue how to customise it, so my question before starting to dig into templates and loops:

    Can I add a full page call to action right below the main navigation menu? I’m using the Marketer demo site; see image here: Full width CTA.

    Best,

    Davide

    #1516920
    Elvin
    Staff
    Customer Support

    Hi,

    You can definitely do it w/ PHP hooks.

    try this PHP snippet:

    add_action('generate_after_header',function(){
    echo ' your code for the full width CTA here';
    });
    #1516967
    Davide

    Hey Elvin,

    sweet! It works perfectly, thanks for the quick answer ✌🏼

    I figured that the secondary menu with a single item would also do the trick.

    Best,

    Davide

    #1516984
    Elvin
    Staff
    Customer Support

    Glad it works for you. No problem. 🙂

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