• eldritchdub

    (@eldritchdub)


    Hello, Everyone:

    I am a new WordPress theme developer and am new to PHP in general. In the theme I am working on, I would like to have links called for by the blogroll function to be left justified instead of indented like they are by default.

    I found out today that the function I had originally used was “old fashioned”; it was:

    <?php get_links_list()' ?>

    I read that this newer function could be used instead:

    <?php wp_list_bookmarks('categorize=1&before=&title_before=<h2>&title_after=</h2>&category_before=</n>&category_before=</n>&after=
    &orderby=url'); ?>

    While it was nice to feel more up-to-date, this still didn’t enable me to achieve my goal of having more control over the position of the blogroll links. Any help with this would be most appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • saildude

    (@saildude)

    Many things can interact with formatting. A link to your site would make it easier for someone to help.

    Thread Starter eldritchdub

    (@eldritchdub)

    Unfortunately my theme hasn’t been published online yet; it’s far from finished.

    It appears to me that the command for the blogroll links to appear in an indented list is inherent in the function I’m using itself. I don’t know enough about PHP to really break this down further so I am here asking for help.

    Anyway, the best I can do to help my helpers is to post more of my code. Firstly, instead of having the categories, archive, meta, and blogroll be in the side bar, I placed most of that stuff in an element in the footer. For me, this resulted in a cleaner layout and allowed the viewer to focus better on the blogger’s posts. Here is what my footer code looks like:

    <div id="footer">
    
    		<div id="categories">
    
    			<h2>Categories</h2>
    
    				<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0');?>
    
    		</div>
    
    		<div id="archives">
    
    			<h2>Archives</h2>
    
    				<?php wp_get_archives('type=monthly');?>
    
    		</div>
    
    		<div id="blogroll">
    
    				<?php get_links_list();?>
    
    		</div>
    
    		<div id="meta">
    
    			<h2>Meta</h2>
    
    				<?php wp_register();?>
    
    				<?php wp_loginout();?></li>
    
    				<?php wp_meta();?>
    
    		</div>
    
    <p id="copyright">Copyright © 2010 <?php bloginfo(’name’); ?></p>
    
    </div>
    
    </div>
    
    </body>

    Most of the links in my footer were placed in list form using the basic “ul” and “li” tags. My goal was to place all these sections in columns next to one another, but the indentation of the links made this difficult. Therefore I deleted the list tags on most of the divs, easily left justifying everything. The problem came when I tried to left justify the blogroll links. It appeared that something inherent in the function was putting the links in unordered list form. This is where I need help: I simply need to know how to stop the blogroll links from appearing in list form.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Requesting help with Blogroll positioning’ is closed to new replies.