Hi mikolajek,
There is currently no way to do this by using the built in options. However I did come up with a workaround.
If you set any links that you do not want to go anywhere to ‘http://test.loc’ and add this filter to your theme’s functions.php file, it should have the desired result.
add_filter('simple_links_widget_output', 'sl_unlink_headers');
function sl_unlink_headers($content){
return str_replace('http://test.loc', '#', $content);
}
I have added the featured to the list of possible future plugin releases.
Hope this helps.
Cheers.
Thanks for the tip!
Unfortunately my WP somehow got stuck with my home address – it generates now this: “http://www.fraudiq.eu/#“. Thus, it adds the desired character but at the same time keeps the original data – some motive build-in feature maybe?
HI mikolajek,
I added a couple new filters and released version 1.8.0 to allow for direct link filtering and to prepare for the future version.
Please update to version 1.8.0 and then you may use this filter to remove the linking from the links set to http://test.loc
add_filter( 'simple_links_widget_link_output', 'sl_remove_header_links', 1, 4);
function sl_remove_header_links( $link_output, $meta, $link, $image ){
if( $meta['web_address'][0] != 'http://test.loc') return $link_output;
return $link->post_title;
}
Hope this helps.
Cheers
Thank you for your interest in the problem and a rapid answer – I’ll wait for the plugin to appear in the update channel and see whether it helps!
I can’t edit my previous post, so a bit spamming from me…
But… the news is great – your solution works like a charm! The links aimed to be headers/separators have really become them since their link functionality was removed thanks to this fix.
Once again many thanks for your support!