Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Removing content from footer in wordpress

Featured Replies

Hey guys,

 

The theme I have on my site has a custom advert on it I would like to get rid of. And would also like to change the text. Instead of Copyright 2008 it should say 2010. It seems I can't get to it through styles.css. And footer.php looks like this:

 

<?php eval(base64_decode('Pz4gCTxkaXYgY2xhc3M9ImJyZWFrIj48L2Rpdj48L2Rpdj4NCgk8IS0tIEVORCBib2R5IC0tPg0KCTxkaXYgaWQ9InJzcyI+PC9kaXY+DQoNCjwvZGl2Pg0KPCEtLSBFTkQgd3JhcHBlciAtLT4NCg0KPCEtLSBCRUdJTiBmb290ZXIgLS0+DQo8ZGl2IGlkPSJmb290ZXIiPjxkaXY+DQoJPHA+Q29weXJpZ2h0ICZjb3B5OyAyMDA4IDw/cGhwIGJsb2dpbmZvKCduYW1lJyk7ID8+LiAgPD9waHAgaWYoaXNfaG9tZSgpKSA6ID8+PGEgaHJlZj0iaHR0cDovL3d3dy53ZWlnaHRsb3NzcGlsbHMyNC5jb20vIiB0aXRsZT0iV2VpZ2h0IGRpZXQiPldlaWdodCBkaWV0PC9hPjw/cGhwIGVuZGlmOyA/PjwvcD4gDQo8L2Rpdj48L2Rpdj4NCjwhLS0gRU5EIGZvb3RlciAtLT4NCg0KPC9ib2R5Pg0KDQo8L2h0bWw+DQogPD8='));?>

 

Why does it look like that?!

Hey Sanj, be careful when downloading free themes! The code you've pasted is actually harmful code! It's encrypted, so you never know what it is, but there is a great video on this problem here.

  • Author

This is the code it gave me, I took out the advert. But the footer doesn't appear.. Any coding I need to add. Sorry for pasting it all.

 

<?php 
	<div class="break"></div></div>
<!-- END body -->
<div id="rss"></div>

</div>
<!-- END wrapper -->

<!-- BEGIN footer -->
<div id="footer"><div>
<p>Copyright © 2010 <?php bloginfo('name'); ?>.  <?php if(is_home()) : ?><a href="" title=""></a><?php endif; ?></p> 
</div></div>
<!-- END footer -->

</body>

</html>
<?

By harmful I mean it might be an advert, like it was in your situation, or it could be some kind of script that monitors your actions, etc. It's just a security thing really.

Your footer code should look (something) like this:

 

       <div class="break"></div></div>
       <!-- END body -->

</div>
<!-- END wrapper -->

<!-- BEGIN footer -->
<div id="footer"><div>
       <p>Copyright © <?php echo date('Y'); ?> <?php bloginfo('name'); ?>. All Rights Reserved.</p> 
</div></div>
<!-- END footer -->

</body>

</html>

 

Does that work?

Cool beans!

 

If you look closely, I've also changed the year from 2010 to <?php date(Y');?>. This ensures that the year will auto update! :)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.