• Resolved iTony78

    (@itony78)


    I have recently singned up on a free webhost and installed wordpress, then a custom theme that i downloaded freely on the web … there’s a demo http://www.skinpressdemo.com/ and my website http://www.bestofh.co.cc like you can see i have already removed the ads on the header but not the others on the right side ; i found a function named “theme_ads_show” on functions.php but when i remove it i can’t open the site anymore … so i’m noob in code but if i post the php file can you please help me ?

    Thank you.
    Cordialy,
    iTony78

Viewing 8 replies - 1 through 8 (of 8 total)
  • romuloctba

    (@romuloctba)

    post this function u talked about and a copy of index.php 🙂

    Thread Starter iTony78

    (@itony78)

    FUNCTIONS.PHP

    [ 674 lines of code moderated. For more than 10 lines of code please pastebin.com instead. ]

    INDEX.PHP (Theme folder index)

    [ Code moderated. For more than 10 lines of code please pastebin.com instead. ]

    romuloctba

    (@romuloctba)

    try changing
    $theme_ads_block_number = get_option(‘theme_ads_block_number’);

    to

    $theme_ads_block_number = 0;

    dont forget to back it up b4 u do it

    tell me if it works

    Thread Starter iTony78

    (@itony78)

    nope, not working.

    romuloctba

    (@romuloctba)

    well, then u should find the place in index, sidebar, or something like this where the function theme_ads_show is used

    u have this site online?

    Thread Starter iTony78

    (@itony78)

    according to my little knowledge in code i think that the function is declared in the functions.php but another php file (the main file i think) has this function so if it execute the main file and then goes to seek for the function and it can’t find it because i delted it … so i think i have to find where this function is used and not declared

    Thread Starter iTony78

    (@itony78)

    UPDATE : problem solved ==
    I founded something in footer.php like

    <!-- ADS start -->
    
                <div id="right_ads">
    
                <? theme_ads_show(); ?>
    
                <!-- ADS end -->
    
                </div>

    and turned it to

    <!-- ADS start -->
                <!-- ADS end -->
    
                </div>

    The ads disepears but there’s a resolution(px) problem, not big deal i’ll find another theme at least, i learned something.

    Thank you.
    Cordialy,
    iTony78

    Thread Starter iTony78

    (@itony78)

    UPDATE : problem solved ==
    I founded something in footer.php like

    <!-- ADS start -->
                <div id="right_ads">
                <? theme_ads_show(); ?>
                <!-- ADS end -->
                </div>

    and turned it to

    <!-- ADS start -->
                <!-- ADS end -->
                </div>

    The ads disepears but there’s a resolution(px) problem, not big deal i’ll find another theme at least, i learned something.

    Thank you.
    Cordialy,
    iTony78

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Problems with ads on a custom wordpress theme’ is closed to new replies.