Support » Plugin: Link Library » Random p tag being added to output

  • Resolved Loni2Shoes


    Hi! Thanks for this wonderful plugin. It makes managing links a lot easier and approachable for non technical folk.

    I am having an issue with the [link-library] shortcode outputting a comment

    <!-- Beginning of Link Library Output -->

    that ends up being wrapped in a P tag. I am hiding empty P tags, but — as this one has actual content, albeit invisible — it still shows. I’ve modified the file render-link-library-sc.php such that lines 356-360 read

    	if ( false ) {
    		$output = "\n<!-- Beginning of Link Library Output -->\n\n";
    	} else {
    		$output = '';

    But, of course, that means I have to make the change every time you release a new version. Would it be possible to remove the surrounding \n tags (which WordPress insists on treating as a paragraph break) from line 357?

    Thank you for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Yannick Lefebvre


    Interesting. Not sure why this is becoming a paragraph on your site. I have removed the surrounding \n tags so you should be good to go in the next update.

    Sorry for the trouble and please consider donating to support this plugin’s development.

    Plugin Author Yannick Lefebvre


    Closing this as it has been resolved in updates.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Random p tag being added to output’ is closed to new replies.