I am new to blogging and trying to create a blog but i am having some problems with a theme i have installed some of them are css/php issues that i can work through steadily and therefore dont worry me too much, however, my main problem is my blogroll doesnt show up, at all, in the theme but it does show up in the default style. i have looked for the sidebar.php file, there isnt one, the right column (where the blogroll should be) is controlled by rightcolumn.php and to my, untrained, eyes the coding looks to be correct why wont the blogroll show up? I dont want to add any content until i have the blog looking and working as i want it to, and am playing around with various plugins etc but the blogroll problem has been there all the time. help www.lazaru5.net (if anybody can tell me how to make the image centralised in the headerblock and how to change the text color in there too it would also be appreciated thanks in advance Laz
well i know now why the blogroll wont show up... i am using wp 2.2.1 but the theme i am using is pre 2.1, the tag it uses for the blogroll is "wp_get_linksbyname" which has been deprecated. the replacement tag is wp_list_bookmarks(), but.. when i change the rightcolumn.php to make it display the blogroll it increases the size of the right column to almost half the width of the page and the title "Blogroll" is offset from the other headings ("blogroll" doesnt appear until i change the tag) any ideas why it does that and how to stop it?
Im not positive now but i think this is the tag to display the blogroll <?php get_links_list('name'); ?>
what would be the 'name' though? without changing the tag i get if i change the tag to wp_list_bookmarks(), i get why does it widen the sidebar? is it a css problem, theme problem, something else? and how can i resolve it?
Ok my friend i have the solution... <?php wp_list_bookmarks(); ?> is correct.. This is the code it renders <li id="linkcat-1"><h2>Blogroll</h2> <ul> <li><a href="http://example1.com/">Blogroll Link 1</a></li> <li><a href="http://example2.com/">Blogroll Link 2</a></li> <li><a href="http://example3.com/">Blogroll Link 3</a></li> </ul> </li> Your theme is not compliant It uses <h4>links</h4> for right column, so you can either edit the theme or a quick fix is to edit the wp-includes/bookmark_template.php On or around line 330 'categorize' => 1, 'title_li' => __('Bookmarks'), 'title_before' => '<h2>', 'title_after' => '</h2>', Change to 'categorize' => 1, 'title_li' => __('Bookmarks'), 'title_before' => '<h4>', 'title_after' => '</h4>', Now it should work... Make a backup before you start (you know the score) Really you should edit the theme instead of messing with the core but there you go......
woohoo! thanks uglyboy, had to edit the core but works now +rep added now about that image in the headerblock...
Hi Lazaru5 I think i have the solution to your header image problem..... #headerblock { position: relative; /* Position is declared "relative" to gain control of stacking order (z-index). */ width: auto; min-width: 120px; margin: 0px 210px 20px 190px; border: 1px solid #000000; background: url(/images/rainbow.jpg) no-repeat; background-position: center; padding: 10px; z-index: 3; /* This allows the content to overlap the right menu in narrow windows in good browsers. */ font-size: 16px; font-weight: 600; } Add the red line to your headerblock css...
yep, thanks mate, I knew it would be something like position:centre or align:centre or whatever, just didnt know how to do it.. thanks again