Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #860805

    allancaeg
    Participant

    Just like this on the theme.co website?

    I’d like to have it for most pages. Would be happy to have the option to switch it off for some pages if I have to.

    #861417

    Jade
    Moderator

    Hi Allan,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Once you setup the child theme, please add this code in the functions.php file:

    
    function call_to_action() {
      
      echo do_shortcode('[content_band class="center-text" style="margin-bottom: 0px;" bg_color="#ffddea" border="all" inner_container="true"] [custom_headline style="margin-top: 0;" level="h4" looks_like="h3"]I am a headline [/custom_headline] <p>Some text here.</p> [button style="margin-top: 20px;" size="jumbo" type="transparent" shape="square" href="#example" title="Example"]Click Here[/button] [/content_band]');
      
    }
    
    add_action( 'x_after_the_content_end', 'call_to_action');

    Please note that the code above will help you to get started kindly edit the contents accordingly.

    Hope this helps.