-
AuthorPosts
-
September 2, 2015 at 8:12 pm #377239
Hello again,
I wanted to see if its possible to add a banner so that it shows on top of the Blog Page and all Blog Posts.
My website is: http://signaturesound.com/blog/I’ve also attached an image as reference. Also, if possible it would be good to add proper spacing for the banner between the “BLOG” title and the Title of the “Post”
Let me know if you need anymore info! Thanks!
I’m currently up to date with wordpress and the your theme.
September 2, 2015 at 11:09 pm #377386Hi there,
Thanks for writing in!
1. You can add this under Custom > JavaScript in the Customizer.
(function($) { var html = '<img class="blog-banner" src="http://signaturesound.com/wp-content/uploads/2015/05/Learn-Compression.png">'; $( html ).appendTo('.blog .h-landmark'); })(jQuery);
Let’s change the image URL with your own uploaded image URL.
2. To control styling, postion etc. you can add this under Custom > CSS in the Customizer.
.blog-banner { margin: 30px auto 0; max-width: 100%; }
Hope this helps.
Cheers!
September 3, 2015 at 12:15 pm #378062This reply has been marked as private.September 3, 2015 at 6:26 pm #378329Hi there,
Please try to update the CSS code to this:
.blog-banner { margin: 30px 0 0; max-width: 100%; }
Hope this helps.
September 8, 2015 at 6:25 pm #382608This reply has been marked as private.September 8, 2015 at 11:02 pm #382745Hello There,
Sorry for the confusion. Please update the javascript above to this:
(function($) { var html = '<img class="blog-banner" src="http://signaturesound.com/wp-content/uploads/2015/09/PSLBANNER.png">'; $( html ).appendTo('.blog .x-header-landmark'); })(jQuery);
Hope this helps.
September 9, 2015 at 10:22 am #383243Great thank you works great! But how about on all blog posts not just the blog homepage?
September 9, 2015 at 11:21 am #383311Hi there,
In that case, the JS code provided would become:
(function($) { var html = '<img class="blog-banner" src="http://signaturesound.com/wp-content/uploads/2015/09/PSLBANNER.png">'; $( html ).appendTo('.single-post .x-header-landmark'); })(jQuery);
Thanks!
November 26, 2015 at 1:57 am #679849Hi, this is not working for us?
November 26, 2015 at 2:01 am #679855Hi,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation.
Thanks
-
AuthorPosts