• Is it possible to add a fixed link to the widget somehow?
    Something like this

    Simple Link 1
    Simple Link 2
    Simple Link 3
    Simple Link 4

    Fixed link

    • This topic was modified 5 years, 6 months ago by Nicklas. Reason: Clarification
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Nicklas,

    This is possible by adding the following filter to your active theme’s functions.php:

    add_filter( 'simple_links__output', function ( $output ) {
    	$output .= '<ul class="simple-links-list">
    					<li class="simple-links-item simple-links-fixed">
    						<a href="https://somewhere.com/some-page">
    							Fixed Link
    						</a>
    					</li>
    				</ul>';
    
    	return $output;
    } );
    1. You will need to change the href to where you want this link to go.
    2. You will need to change “Fixed Link” to the link text you would like.

    Have a great day!

    OnPoint Plugins

    Thread Starter Nicklas

    (@blekfis)

    Works, thanks!! But a small problem for me; I use the widget twice for showing different categories. Can it be set to show different fixed link depending on category/widget name/something else?

    Once again, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add fixed link’ is closed to new replies.