• Hi,
    I just installed this and applied the template; however, the links aren’t showing up under the “links” section. Any idea how to fix or what i’m doing wrong?

    I’m new to wordpress, so that might explain it.

    I entered links in the “back-end” of WordPress, and I also tried to do it manually in the sidebar.php section. (It already had the list items there, so i just changed the top one to a link…. however the list items have never shown up on the live page.)

    Here’s the sidebar.php code that came w/ the template if that helps any.

    <div id="sidebar">
    
    <ul class="categorytext"><?php wp_list_categories('title_li=<h2></h2>');?></ul>
    
    <div class="newcomments">
       <?php if (function_exists('get_recent_comments')) { ?>
    	<ul><?php get_recent_comments(); ?></ul>
    </div>
    <div class="linkstext">
    	<ul>
       	  <li><a href="https://poptropica.com">Poptropica</a></li>
    	  <li><a href="#">can be put right here</a></li>
    	  <li><a href="#">link to friends</a></li>
    	  <li><a href="#">or maybe archives</a></li>
          <li><a href="#">whatever You want, bud</a></li>
    	</ul>
    </div>
       <?php } ?>
       <?php if (function_exists('get_flickrRSS')) { ?>
    	<ul class="flickr">
       <?php get_flickrRSS(); ?>
    	</ul>
       <?php } ?>
    </div>
    </div>

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Actually, I would avoid editing the sidebar.php like that. You will want to use widgets to change the way the sidebar appears. There is a blogroll widget you can put in the sidbare that would fulfill your needs.

    Are you sure you didn’t modify anything on that template file? Because it is wrong.

    Thread Starter motoethan

    (@motoethan)

    The only thing I modified on that template file was adding the poptropica line. And prior to that, the links did not show up. (At that point, I figured it was because I had no links; it was a new installation. But when I added links through Admin, nothing ever showed up.)

    Thread Starter motoethan

    (@motoethan)

    Hello again,
    If anyone wants to install this and try to figure it out, you can download the theme at https://freethemelayouts.com/dls/deskspace.zip

    I was also trying to make the sidebar recognizable so I could add widgets, but I did what an article said (following the link on the WordPress admin page), and it didn’t work.

    I’m hoping someone here might know what to do.

    Thanks.

    Try to read carefully the code you posted – here is the portion that causes the troble:

    <div class="newcomments">
       <?php if (function_exists('get_recent_comments')) { ?>
    	<ul><?php get_recent_comments(); ?></ul>
    </div>
    <div class="linkstext">
    	<ul>
       	  <li><a href="https://poptropica.com">Poptropica</a></li>
    	  <li><a href="#">can be put right here</a></li>
    	  <li><a href="#">link to friends</a></li>
    	  <li><a href="#">or maybe archives</a></li>
          <li><a href="#">whatever You want, bud</a></li>
    	</ul>
    </div>
       <?php } ?>

    Do you see that IF statement in the second line? It says: display what follows below ONLY IF the recent comments function exists (=plugin/widget active). If not, don’t display anything. And the closing of that if-statement is in the last line. Wrong. It should be in line #4.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘no links?’ is closed to new replies.