Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1316325
    JW & Co.
    Participant

    Hello,

    1. The only way I could get an image to display at the top of verobeachwebsitedesign.net/insights/ was to add a slider. Unfortunately, this causes the banner image to look different from all the other pages. Is there a way to make it look like the rest of the banners on the website?

    2. I would like a subscription form to appear above the footer at the bottom of this page. Prior to setting the “Insights” page as the page I want my posts to display on, this shortcode in a raw content element was correctly displaying the form: [x_subscribe form=”1574″]. Is there a way to make it visible on the page?

    Thanks,
    Josh

    #1316519
    Friech
    Moderator

    Hi Josh,

    Thanks for writing in! #1 Add this code on your child theme’s functions.php file

    /**
    Add custom banner on Blog page
    */
    function custom_banner() { 
     if(is_home()) : ?>
       <div id="x-section-x" class="x-section bg-image" style="margin: 0px;padding: 52px 0px; background-image: url(http://verobeachwebsitedesign.net/wp-content/uploads/2016/02/Banner.png); background-color: transparent;"></div>
      <?php endif; 
    }
    add_action('x_after_view_integrity__breadcrumbs','custom_banner', 30);

    Replace the background-image: url with the desired image.

    #2 And this as well.

    /**
    content above footer
    */
    function custom_footer() { 
     if(is_home()) : ?>
       <div id="x-section-xx" class="x-section bg-image" style="margin: 0px;padding: 52px 0px; background-color: transparent;">
        <div class="x-container max width">
            <?php echo do_shortcode( '[contact-form-7 id="91" title="quote"]' ); ?>
         </div>
      </div>
      <?php endif; 
    }
    add_action('x_before_view_integrity_wp-footer','custom_footer', 40);

    Let us know how it goes.

    Cheers!

    #1316920
    JW & Co.
    Participant

    Hello,

    This code was partially successful.

    The banner image looks great, but I’m seeing raw shortcode in place of the desired subscription form.

    #1317049
    Friech
    Moderator

    Hi There,

    Oh sorry about that, on my second code please replace the [contact-form-7 id="91" title="quote"] with your subscribe form shortcode.

    Thanks.

    #1317337
    JW & Co.
    Participant

    Thanks, now working!
    <3

    #1317402
    Joao
    Moderator

    Glad to hear it 🙂

    Joao

  • <script> jQuery(function($){ $("#no-reply-1316325 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>