-
Author
-
September 28, 2016 at 20:16 #137497hchyParticipant
Hello 7th Queen,
I use the kleo template and have got my site layout the way I want it. I was wondering if it is possible to add just a text field, or an area right under the breadcrumbs/ title bar for google adsense. I was trying to accomplish it in visual composer but had no luck.
I know google adsense codes must be inserted using a <div> tag. I know also some core wordpress files like functions.php. I was wondering if anyone can point in the right direction of what I can edit in order to just add a text field, or a block of content <google adsense code> right under the breadcrumbs/ title bar?
I do see the ability to have an ad in the header to the far right as an option. I would love to beable to move that to under the breadcrumbs/ title bar? Thank you so much for your time
September 28, 2016 at 20:21 #137499RaduModeratorHi,
use this php code, add it to wp-content/themes/kleo-child/functions.php
COPY CODEfunction ads_before_content() { echo ' <div style="width:728px;height:90px;background-color:red;display:block;margin:0 auto;"> 728 AD </div> '; } add_action ('kleo_before_content', 'ads_before_content');
Replace
COPY CODE<div style="width:728px;height:90px;background-color:red;display:block;margin:0 auto;"> 728 AD </div>
With your desired code
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Ticket solutionSeptember 28, 2016 at 20:30 #137501hchyParticipantThank you for such a quick response. Really appreciate it !
September 29, 2016 at 14:04 #137576RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 29, 2016 at 14:15 #137578RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 29, 2016 at 14:48 #137581RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 29, 2016 at 16:39 #137590RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 29, 2016 at 16:42 #137591RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 29, 2016 at 16:53 #137593RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionSeptember 29, 2016 at 16:55 #137597RaduModeratorYou’re welcome
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.