Tagged: x
-
AuthorPosts
-
September 13, 2016 at 2:48 pm #1173702
mrbizkid13ParticipantHi,
Using Ethos, I want to add a banner in the header area for Adsense. Can you please advise as to the best way of doing this?
Thanks…
September 13, 2016 at 6:45 pm #1173992
JadeModeratorHi there,
You may follow the suggestion on this link: http://www.wpbeginner.com/beginners-guide/how-to-add-google-adsense-to-your-wordpress-site/
Let us know if you need further help.
September 14, 2016 at 4:24 pm #1175487
mrbizkid13ParticipantPlease let me clarify: I am asking for help positioning a banner in the header area using Ethos. The four widget areas do not accommodate a single horizontal banner.
Thank you
September 14, 2016 at 10:21 pm #1175964
FriechModeratorHi There,
Please provide us your site URL so we can take a closer look, and perhaps some screenshot on how you want the banner to be positioned on the header.
We’ll be happy to provide you with a response once we have a better understanding of the situation.
Thanks.
September 15, 2016 at 1:57 pm #1177052
mrbizkid13ParticipantSeptember 15, 2016 at 1:59 pm #1177061
mrbizkid13ParticipantForgot to add: banner in the header area above the image and below the social media bar – if possible. If not, then as long as its in the header area it will work.
September 15, 2016 at 5:15 pm #1177296
JadeModeratorHi there,
Your site seems to be not loading at the moment. Is this the correct link you have provided? Kindly double check. Thank you.
September 16, 2016 at 1:16 pm #1178481
mrbizkid13ParticipantSorry – you can view it now. Thanks
September 16, 2016 at 10:57 pm #1179010
FriechModeratorHi There,
On your child theme, navigate to this directory \x-child\framework\views\ethos\. There create a file named wp-header.php and paste the code below on it.
<?php // ============================================================================= // VIEWS/ETHOS/WP-HEADER.PHP // ----------------------------------------------------------------------------- // Header output for Ethos. // ============================================================================= ?> <?php x_get_view( 'global', '_header' ); ?> <?php x_get_view( 'global', '_slider-above' ); ?> <header class="<?php x_masthead_class(); ?>" role="banner"> <?php x_get_view( 'ethos', '_post', 'carousel' ); ?> <?php x_get_view( 'global', '_topbar' ); ?> <div class="ad-banner x-container max width"> <!-- PASTE YOUR ADS BANNER CODE HERE --> </div> <?php x_get_view( 'global', '_navbar' ); ?> <?php x_get_view( 'ethos', '_breadcrumbs' ); ?> </header> <?php x_get_view( 'global', '_slider-below' ); ?> <?php x_get_view( 'ethos', '_landmark-header' ); ?>Replace the
<!-- PASTE YOUR ADS BANNER CODE HERE -->part with your actual ad banner code.Hope it helps, Cheers!
September 17, 2016 at 9:17 am #1179371
mrbizkid13ParticipantHi
I created the file with the provided code, and it did not work. The file (-content/themes/x-child/framework/views/ethos/wp-header.php ) is not showing as a php file (screen shot attached).
Thanks…
September 17, 2016 at 10:25 am #1179412
ThaiModeratorHi There,
Please provide us with your FTP account so we can take a closer look.
Thanks.
September 18, 2016 at 1:04 pm #1180318
mrbizkid13ParticipantThis reply has been marked as private.September 18, 2016 at 5:37 pm #1180516
LelyModeratorHi There,
I have created the file and added on the same folder. Then remove the other file. Feel free to download that file and then edit it and upload again.
Hope this helps.
September 19, 2016 at 12:20 pm #1181755
mrbizkid13ParticipantHi – great, thank you. I’m just not clear from your note what you mean by ‘Then remove the other file’?
Once this has been successfully implemented, how do I activate the banner area? Shortcode? Widget?
Thanks very much!
September 19, 2016 at 4:57 pm #1182162
FriechModeratorHi There,
Lely means, she remove the other wp-header.php file (the one that you created).
The banner code will be hardcoded on wp-header.php file. Please login to your FTP and edit the file wp-header.php (that Lely created). Look for the line
<!-- PASTE YOUR ADS BANNER CODE HERE -->and replace that with your actual banner code.The banner should show between the maroon and black area of your header.
Hope it helps, Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1173702 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
