new blog problems

Discussion in 'Blogging' started by Lazaru5, Jul 5, 2007.

  1. #1
    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:confused:

    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
     
    Lazaru5, Jul 5, 2007 IP
  2. Lazaru5

    Lazaru5 Peon

    Messages:
    249
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    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?
     
    Lazaru5, Jul 5, 2007 IP
  3. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Im not positive now but i think this is the tag to display the blogroll

    <?php get_links_list('name'); ?>
     
    uglyboy, Jul 5, 2007 IP
  4. Lazaru5

    Lazaru5 Peon

    Messages:
    249
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #4
    what would be the 'name' though?

    without changing the tag i get [​IMG]

    if i change the tag to wp_list_bookmarks(), i get [​IMG]

    why does it widen the sidebar? is it a css problem, theme problem, something else? and how can i resolve it?
     
    Lazaru5, Jul 5, 2007 IP
  5. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #5
    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......
     
    uglyboy, Jul 5, 2007 IP
    Lazaru5 likes this.
  6. Lazaru5

    Lazaru5 Peon

    Messages:
    249
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    woohoo! thanks uglyboy, had to edit the core but works now :D

    +rep added

    now about that image in the headerblock... ;)
     
    Lazaru5, Jul 5, 2007 IP
  7. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Maybe i look @ Ur other problem in a bit

    Thanks for the rep...
     
    uglyboy, Jul 5, 2007 IP
  8. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #8
    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... :)
     
    uglyboy, Jul 5, 2007 IP
  9. Lazaru5

    Lazaru5 Peon

    Messages:
    249
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #9
    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 :)
     
    Lazaru5, Jul 5, 2007 IP
  10. uglyboy

    uglyboy Peon

    Messages:
    1,963
    Likes Received:
    134
    Best Answers:
    0
    Trophy Points:
    0
    #10
    No Worries... Its all good..
     
    uglyboy, Jul 5, 2007 IP