Tagged: x
-
AuthorPosts
-
January 4, 2017 at 2:28 pm #1316325
JW & Co.ParticipantHello,
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,
JoshJanuary 4, 2017 at 5:23 pm #1316519
FriechModeratorHi 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: urlwith 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!
January 4, 2017 at 11:28 pm #1316920
JW & Co.ParticipantHello,
This code was partially successful.
The banner image looks great, but I’m seeing raw shortcode in place of the desired subscription form.
January 5, 2017 at 2:53 am #1317049
FriechModeratorHi 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.
January 5, 2017 at 8:16 am #1317337
JW & Co.ParticipantThanks, now working!
<3January 5, 2017 at 9:18 am #1317402
JoaoModeratorGlad to hear it 🙂
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1316325 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
