• 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 6 replies - 1 through 6 (of 6 total)
  • Thread Starter iTony78

    (@itony78)

    sorry for the bad link there’s my website link : http://www.bestofh.co.cc or the original link : http://bestofh.net63.net

    Sounds like the theme is coded so that it will not work if you remove that function. Since the theme is in French (I think), I can’t read it to tell more.)

    Suggest that you use a theme from here — as they are all reviewed to ensure that they meet the standards by WP.ORG — and they are all free.

    i found a function named “theme_ads_show” on functions.php but when i remove it i can’t open the site anymore

    Yeah… you can’t do that. You probably just crated an undefined function fatal error, by deleting that function definition.

    What Theme are you using, and where did you download it?

    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

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

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