• Currently I’m reconstructing my blog with a static front page, and I have finally found a theme I was reasonably happy with and have been creating a child theme from it. All is going well, but…

    If you visit the under-construction site (https://www.jimross.co.uk/blog) then it includes some daft ads in the very footer for various things. I cannot for the life of me figure out how to get rid of them. I have tried editing the footer.php but it usually just screws it up. CSS I can cope with but I have no idea with PHP. How do I remove this gubbins?

    Current footer.php contents:

    <div class="clear"></div>
    		</div>
    	</div>
    
    	<?php get_sidebar('foot'); ?>
    
    	<div id="footer">
    		<div id="footer-pad" class="append-clear">
    			<p class="copyright">
    				<?php echo sprintf(__('Copyright &copy; %1$s. %2$s. All rights reserved.', PADD_THEME_SLUG), date('Y'), get_bloginfo('name')); ?>
    			</p>
    			<?php padd_theme_credits(); ?>
    			<div class="clear"></div>
    		</div>
    	</div>
    
    	</div>
    </div>
    <?php wp_footer(); ?>
    <?php
    $tracker = Padd_Theme_Option::get('tracker_bot','');
    if (!empty($tracker)) {
    	echo stripslashes($tracker);
    }
    ?>
    </body>
    </html>

Viewing 5 replies - 1 through 5 (of 5 total)
  • By ads, do you mean the “Designed by…” stuff? I would assume that this line:

    <?php padd_theme_credits(); ?>

    is the culprit.

    Thread Starter JimGR

    (@jimgr)

    Cheers, it is that but when I remove that it causes the whole thing to crash until I put it back in. There is some sort of nefarious encoded code going on (google Padd Solutions and look for other wordpress forum results).

    They’re scumbags basically, I have ditched it and am trying other themes…

    Yeah, some not so awesome theme authors/distributors rig their own links/ads to kill the site if someone tries to remove them. The official theme repository is a good place to look for themes written by awesome people.

    Hello JimGR,
    there will be a function called padd_theme_credits() in your theme functions.php file.Search for it and remove the code inside the function or remove the return statement in that function.
    Hope this will work.
    I did like this for one of my theme to work.

    [sig moderated as per the Forum Rules]

    this problem is caused by a number of things:

    – the content of the spam footer is coming from \library\prelude.php which includes a coded stuff.
    – delete the contents of this file (prelude.php)
    – and inside your footer.php add this code (above <?php padd_theme_credits(); ?> )
    <p class=”copyright”>? 201x. Company. All rights reserved.</p>
    <div class=”clear”></div>

    that should do it.

    leave the <?php padd_theme_credits(); ?> as is it!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Footer problems, probably simple to solve’ is closed to new replies.