GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Showing links only in Homepage page 1 (https://gfy.com/showthread.php?t=1149909)

ravenazrael 09-12-2014 07:20 AM

Showing links only in Homepage page 1
 
Hi guys. I want to show some links only on the Homepage of my blog boobsrealm.com

I am using the plug-in Display Widgets to show it only on front page, however, when you click on Older Posts you go to page 2 and still see the Links. The guys that asked me for those links only want them featured on Home Page page One... nothing more.Anyone has an idea how to fix that in wordpress? I used also Logic Widget and put is_front_page and is_home, but still shows the links on page 2, 3 and so on.

Denny 09-12-2014 07:43 AM

I use this code on some of my WP blogs:

PHP Code:

<?php if(is_home() && !is_paged()):?><a href="http://www.homepagelinkonly.com">homepage link only</a><?php endif;?>


ravenazrael 09-12-2014 07:54 AM

Quote:

Originally Posted by Denny (Post 20223570)
I use this code on some of my WP blogs:

PHP Code:

<?php if(is_home() && !is_paged()):?><a href="http://www.homepagelinkonly.com">homepage link only</a><?php endif;?>


It worked!! thank!!

Denny 09-12-2014 08:01 AM

Quote:

Originally Posted by ravenazrael (Post 20223577)
thanks... well I am not good at managing my cpanel, i always do everything from WP... which file I should modify?

Insert that code to sidebar.php file (for sidebar links).

ravenazrael 09-12-2014 08:21 AM

Quote:

Originally Posted by Denny (Post 20223582)
Insert that code to sidebar.php file (for sidebar links).

thanks Denny!

bluebook18 09-12-2014 02:36 PM

i'm using widget context..

ravenazrael 09-15-2014 04:03 AM

Quote:

Originally Posted by bluebook18 (Post 20224048)
i'm using widget context..

thanks man.
BTW I was told that when the links are shown on everypage is not good for that URL.. do you know if that is true and why? thanks


All times are GMT -7. The time now is 02:44 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123