Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Closed Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Making blogroll link homepage only

  1. #1
    temi's Avatar
    temi is offline Facilitator temi is just really nice temi is just really nice temi is just really nice temi is just really nice temi is just really nice
    Join Date
    Jun 2003
    Location
    London, England.
    Posts
    10,304

    Default Making blogroll link homepage only

    Just wondering if there is a way of making a blogroll homepage only rather than sitewide from WP or is it encoded in the theme?

    * Build a shopping cart for your business with eCommerce software UK
    * BossCart.com can build you a.
    Register your domain names at Velnet
    ::
    Add Eco sites to The Green Directory free of charge.
    Use LBS Free PHP Directory Script . Web Hosting Blog

  2. #2
    Bagi Zoltán's Avatar
    Bagi Zoltán is offline Boss Cart consultant Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of Bagi Zoltán has much to be proud of
    Join Date
    Feb 2007
    Location
    Veszprém, Hungary
    Posts
    1,225

    Default

    It is possible to modify the sidebar.php file which usually contains the blogroll in order to make links display only at the homepage using the $_SERVER['REQUEST_URI'] predefined variable.

  3. #3
    rhyswynne's Avatar
    rhyswynne is offline Senior Member rhyswynne is on a distinguished road
    Join Date
    Nov 2007
    Posts
    378

    Default

    Yeah, it's possible. Though I'm assuming you want to make the entire blogroll homepage only, rather than just one link.

    Simply put this code in the sidebar.php file

    PHP Code:
    <?php if (is_home()) { ?>

    <h2>Blogroll</h2>

    <?php        wp_list_bookmarks('');
    ?>
    That should put a basic list in the sidebar.
    Enjoy Retro Games? Why not join my Retro Gaming Forum?

    Single? Join Our Dating Site For Bloggers

  4. #4
    temi's Avatar
    temi is offline Facilitator temi is just really nice temi is just really nice temi is just really nice temi is just really nice temi is just really nice
    Join Date
    Jun 2003
    Location
    London, England.
    Posts
    10,304

    Default

    Quote Originally Posted by Bagi Zoltán View Post
    It is possible to modify the sidebar.php file which usually contains the blogroll in order to make links display only at the homepage using the $_SERVER['REQUEST_URI'] predefined variable.
    Thanks very much Zoli,
    You are already very reputable but rep added still

    * Build a shopping cart for your business with eCommerce software UK
    * BossCart.com can build you a.
    Register your domain names at Velnet
    ::
    Add Eco sites to The Green Directory free of charge.
    Use LBS Free PHP Directory Script . Web Hosting Blog

  5. #5
    temi's Avatar
    temi is offline Facilitator temi is just really nice temi is just really nice temi is just really nice temi is just really nice temi is just really nice
    Join Date
    Jun 2003
    Location
    London, England.
    Posts
    10,304

    Default

    You are right Ryhs, I want to make the entire blogroll homepage only, thanks very much for the code, rep added


    Quote Originally Posted by rhyswynne View Post
    Yeah, it's possible. Though I'm assuming you want to make the entire blogroll homepage only, rather than just one link.

    Simply put this code in the sidebar.php file

    PHP Code:
    <?php if (is_home()) { ?>

    <h2>Blogroll</h2>

    <?php        wp_list_bookmarks('');
    ?>
    That should put a basic list in the sidebar.

    * Build a shopping cart for your business with eCommerce software UK
    * BossCart.com can build you a.
    Register your domain names at Velnet
    ::
    Add Eco sites to The Green Directory free of charge.
    Use LBS Free PHP Directory Script . Web Hosting Blog

  6. #6
    deluxdon's Avatar
    deluxdon is offline Senior Member deluxdon has a spectacular aura about deluxdon has a spectacular aura about deluxdon has a spectacular aura about
    Join Date
    Mar 2007
    Location
    www.wpblogpoint.com
    Posts
    869

    Default

    Quote Originally Posted by rhyswynne View Post
    Yeah, it's possible. Though I'm assuming you want to make the entire blogroll homepage only, rather than just one link.

    Simply put this code in the sidebar.php file

    PHP Code:
    <?php if (is_home()) { ?>

    <h2>Blogroll</h2>

    <?php        wp_list_bookmarks('');
    ?>
    That should put a basic list in the sidebar.
    Thanks for ths useful info rhyswynne.

    I am also searching for this.

    DON.

  7. #7
    misi is offline Junior Member misi has much to be proud of misi has much to be proud of misi has much to be proud of misi has much to be proud of misi has much to be proud of misi has much to be proud of misi has much to be proud of misi has much to be proud of misi has much to be proud of misi has much to be proud of
    Join Date
    Aug 2007
    Posts
    5

    Default

    Quote Originally Posted by rhyswynne View Post
    Yeah, it's possible. Though I'm assuming you want to make the entire blogroll homepage only, rather than just one link.

    Simply put this code in the sidebar.php file

    PHP Code:
    <?php if (is_home()) { ?>
     
    <h2>Blogroll</h2>
     
    <?php        wp_list_bookmarks('');
    ?>
    That should put a basic list in the sidebar.
    I've added the code to the sidebap.php file but nothing happen ... except that on the home page, over the Blogroll appears another Blogroll block.

  8. #8
    livetech is offline Senior Member livetech will become famous soon enough
    Join Date
    Nov 2007
    Posts
    182

    Default

    Quote Originally Posted by misi View Post
    I've added the code to the sidebap.php file but nothing happen ... except that on the home page, over the Blogroll appears another Blogroll block.
    I suspect what this could be is that you need to remove the original wp_list_bookmarks somewhere in the code, and replace it with the code Rhys gave.

  9. #9
    cwsteam.com is offline Junior Member cwsteam.com is on a distinguished road
    Join Date
    Sep 2007
    Posts
    7

    Default

    Worked like a charm, thanks rhyswynne

  10. #10
    deluxdon's Avatar
    deluxdon is offline Senior Member deluxdon has a spectacular aura about deluxdon has a spectacular aura about deluxdon has a spectacular aura about
    Join Date
    Mar 2007
    Location
    www.wpblogpoint.com
    Posts
    869

    Default

    Quote Originally Posted by misi View Post
    I've added the code to the sidebap.php file but nothing happen ... except that on the home page, over the Blogroll appears another Blogroll block.
    Try out below given code.

    Code:
    <?php if ( is_home() || is_page() ) { ?>
    Your Link Here
    <?php } ?>
    DON.

Closed Thread
Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124