• focuswebtech

    (@focuswebtech)


    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!

Viewing 11 replies - 1 through 11 (of 11 total)
  • esmi

    (@esmi)

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

    Thread Starter focuswebtech

    (@focuswebtech)

    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.

    esmi

    (@esmi)

    What do you currently have in sidebar.php?

    Thread Starter focuswebtech

    (@focuswebtech)

    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…

    esmi

    (@esmi)

    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?

    Thread Starter focuswebtech

    (@focuswebtech)

    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!

    esmi

    (@esmi)

    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.

    Thread Starter focuswebtech

    (@focuswebtech)

    try removing the period πŸ™‚ It added the period on the a for some reason.

    esmi

    (@esmi)

    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; ?>

    Thread Starter focuswebtech

    (@focuswebtech)

    Still not working πŸ™

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

    Thread Starter focuswebtech

    (@focuswebtech)

    OK – I found a plugin that customizes the blogroll. Works now. Thanks for your help πŸ™‚

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

The topic ‘Links/blogroll problem with Image Address’ is closed to new replies.