-
Author
-
April 11, 2016 at 23:58 #115854fullworksmediaParticipant
hey there,
Could you please tell me where I could insert php code in header so it displays 728×90 banner top of the page? Not sure which file should be edited to add php code from a banner’s plugin in it.
Many thanks,
Adam
April 12, 2016 at 18:22 #116011RaduModeratorHi,
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_main', '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. Mark as a solutionAugust 25, 2016 at 21:50 #133911glossypolishParticipantThank you so much Radu. Could you please help with code that can be placed in kleo grid and forum in the middle of content and after content. None of the plugins seems to work.
August 26, 2016 at 17:36 #133985RaduModeratorHi,
Use that function to add banned before content and for the after content use this
COPY CODEfunction ads_after_content() { echo ' <div style="width:728px;height:90px;background-color:red;display:block;margin:0 auto;"> 728 AD </div> '; } add_action ('kleo_after_main', 'ads_before_content');
these functions should be applied also on the forum pages,
For the middle of the content we don’t have yet a quick solution
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.