WordPress.org

Ready to get started?Download WordPress

Forums

Link Library
[resolved] Link Categories Settings: "display link counts" drop on the next line (7 posts)

  1. AmareeLis
    Member
    Posted 1 year ago #

    Hi :)

    Thank you for the awesome plugin..! I just have a problem since the recent version. The link counter has now all drop to the next line and therefore my link categories list has way too much gap.

    This is my website: http://freecuteknit.com/freebies/free-knitting-patterns-directory/

    Under the heading "Patterns Category" you can see that I have 3 column table in the Link Categories section, I have enabled the "display link counts" and the counter have all dropped down to the next line creating this unnecessary massive space. It makes my link category extremely long.

    Please help me as I don't know why this suddenly happen since I update to the new version of the plugin.

    Kind Regards,
    Dina

    http://wordpress.org/extend/plugins/link-library/

  2. robinmnz
    Member
    Posted 1 year ago #

    Same ... this is annoying!

  3. skamaria
    Member
    Posted 1 year ago #

    I am also seeing this since the most recent update. So far, I have not been able to get it looking like it did previously just using css.

  4. esbenh
    Member
    Posted 1 year ago #

    Hi all, I found a way to change this. In the link-library.php and search for linkcatname. Replace this code

    if ( $catlistdescpos == 'right' || $catlistdescpos == '' ) {
    	$catitem .= '<div class="linkcatname">' . $catname->name . '</div>';
    	if ($showcatlinkcount)
    		$catitem .= " (" . $catname->linkcount . ")";
    }

    with this

    if ( $catlistdescpos == 'right' || $catlistdescpos == '' ) {
    	$catitem .= '<div class="linkcatname">' . $catname->name;
    	if ($showcatlinkcount)
    		$catitem .= " (" . $catname->linkcount . ")" . '</div>';
    }

    This made the number of links in each category appear on the same line as the category name for me. There is probably a better solution, but if nothing else this will work as a temporary fix.

  5. AmareeLis
    Member
    Posted 1 year ago #

    Thank you esbenh! It works, you are amazing!! :D

    Thank you so much for your help..!

    Cheers,
    Dina

  6. esbenh
    Member
    Posted 1 year ago #

    No problem! Please note that I have not tested this thoroughly and that it may break if you choose to not show the link count :-)

  7. AmareeLis
    Member
    Posted 1 year ago #

    No worries, I will keep that in mind, and most likely I will always use the link count anyhow ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic