Forums

Links/blogroll problem with Image Address (12 posts)

  1. focuswebtech
    Member
    Posted 3 years ago #

    I want to show a link in the blog with a tiny image like a favicon to the left of the text. Seems when I use the "Image Address" section and include the url to the image, it does not then show the "Name" as well - it shows the image but no text. How can I get it to show both? You can see what I mean at http://www.restyleblog.com/blog. Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    This would be best dealt with using CSS and maybe a little theme editing. Is that something you're familiar with?

  3. focuswebtech
    Member
    Posted 3 years ago #

    Yes - I can edit the css and theme - what do I need to edit?? I'm a novice at php but pretty proficient in css.

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    What do you currently have in sidebar.php?

  5. focuswebtech
    Member
    Posted 3 years ago #

    Well, I am using widgets, so edits in sidebar.php don't seem to be taking as they normally would - I am not sure how it all fits together though. I have done some edits to wp-includes/widgets.php.

    Relevant code in sidebar.php is:

    <h4>Links</h4>
    			<ul>
    			<?php wp_list_bookmarks('title_li=0&amp;categorize=0'); ?>
    			</ul>

    In widgets.php, I have:

    * Display links widget.
     *
     * @since 2.2.0
     *
     * @param array $args Widget arguments.
     */
    function wp_widget_links($args) {
    	extract($args, EXTR_SKIP);
    
    	$before_widget = preg_replace('/id="[^"]*"/','id="%id"', $before_widget);
    	wp_list_bookmarks(apply_filters('widget_links_args', array(
    		'title_before' => $before_title, 'title_after' => $after_title,
    		'category_before' => $before_widget, 'category_after' => $after_widget,
    		'show_images' => true, 'class' => 'linkcat widget'
    	)));
    }

    I appreciate your help...

  6. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    I'd suggest making changes to sidebar.php and staying away from hacking the core files. What widgets do you have installed in your sidebar according to Admin/Appearance/Widgets?

  7. focuswebtech
    Member
    Posted 3 years ago #

    I only added a couple of links hard coded in to widgets.php. Nothing spectacular :)

    Widgets I have are:
    Pages,
    RSS,
    Recent Posts,
    Search,
    Categories,
    Tags,
    Links

    One thing I noticed is that it's saying Left sidebar, when you can clearly see it's displying on the right!

  8. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    I wouldn't worry about it's positioning. That's obviously been changed at some time in the theme's development and the sidebar's name hasn't been amended. However, I can't seem to get to your site using the url above right now.

  9. focuswebtech
    Member
    Posted 3 years ago #

    try removing the period :) It added the period on the a for some reason.

  10. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    You need to take the Links widget out of the sidebar then, in sidebar.php, move:

    <h4>Links</h4>
    <ul><?php wp_list_bookmarks('title_li=0&amp;categorize=0'); ?>
    </ul>

    so that it is after

    <?php endif; ?>

  11. focuswebtech
    Member
    Posted 3 years ago #

    Still not working :(

    The links show up, but not the actual text, only the image. Got any other suggestions?

  12. focuswebtech
    Member
    Posted 3 years ago #

    OK - I found a plugin that customizes the blogroll. Works now. Thanks for your help :)

Topic Closed

This topic has been closed to new replies.

About this Topic