• I display my links widget in the sidebar but I would like to put them in my theme (main page – outside the sidebar)!

    how can I do this ? what <php can I use and where do I find it ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s not exactly a links widget, because those only live in the sidebar, but you can create a links page that will display your links and a short description on a separate page. Is that what you want?

    Just copy your page.php file, rename it linkspage.php and put this in the header:

    <?php
    /*
    Template Name: Links
    */
    ?>

    And here’s the “guts” of the links page:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    	<div class="post" id="post-<?php the_ID(); ?>">
    	<h2><?php the_title(); ?></h2>
    		<div class="entry">
    			<?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    
    			<ul>
    			<?php wp_list_bookmarks('show_description=true&between=:  '); ?>
    			</ul>
    		</div>
    	</div>
    <?php endwhile; endif; ?>

    Thread Starter hellows

    (@hellows)

    Thank you for your help. But I would prefer to have the links displayed in my index page (main page). I had a look in the sidebar.php and found something like this <php? link-………> I have copied this to the home.php and it is working now, however I have a problem to put this widget next to my image. It appears under it:
    IMAGE
    IMAGE

    Do I have to use some special <table code to have them side by side, like this:

    IMAGE IMAGE

    I used <table <tr <bd functions but it corrupts the whole page and sidebar.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to add link widget to a theme ?’ is closed to new replies.