This topic has 3 replies, 3 voices, and was last updated 8 years by Radu.

  • Author
  • #115854
     fullworksmedia
    Participant

    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

    #116011
     Radu
    Moderator

    Hi,

    use this php code, add it to wp-content/themes/kleo-child/functions.php

    COPY CODE
    function 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 solution
    #133911
     glossypolish
    Participant

    Thank 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.

    #133985
     Radu
    Moderator

    Hi,

    Use that function to add banned before content and for the after content use this

    COPY CODE
    
    function 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
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?