Is there a way to make a widget title clickable?
ie. as in links to another page
Rashell |
I know some widgets have that functionality but I know of no way to link any old widget title. Curious to see if someone has an idea.
|
you would have to edit the plugin's code and put in the link.
I wonder if you could write a plugin that would look for a shortcode, like [widget-link title='widget title' link='http://domain.com/page'] and apply it correctly. |
got it halfway there.
I swapped the functions.php register sidebar with register_sidebar(array( 'name'=>'Right Sidebar', 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<div class="widget-title"><a href="./link"><h3>', 'after_title' => '</h3></a></div>', )); But I have to figure out how to make the links dynamic or specific for each widget. Right now they're all linking to http://mydomain.com/link Got any suggestions, anyone? Rashell |
Would the widget's ID help?
|
I think so. I'm still trying to grapple my mind around the whole dynamic_sidebar_params wordpress thing. I'm not sure if I'd need to list each widget currently in my right sidebar in the functions.php seperately. I'd just go into each widget and change the "title" to a clickable link but there's 1 with a multiple instance I can't do it with.
|
I haven't tested it but you might want to look at this plugin for linkable titles.
|
You know i was checking that out the other day and dismissed it because it didn't answer all my problems at once. Now that I rethink it... it just might do.
Will try it and let you all know. Thanks you all so so so much for brainstorming with me!!! Rashell |
Update:
Wasn't seeing the forest for the trees there. Rather than messing with the ATA functions.php I could have just as easily created new widget areas inside the right sidebar using a PHP/Text Widget & a new widget area formula similar to... PHP Code:
It works but not flawlessly. I was trying to link the widget/plugin Sideposts. It will only allow you to link one instance. Anymore than that and it destroys your layout. Seems to work fine with other plugins though. Ah well... On to next brainstorm... Rashell |
Me thinks you spend way too much time in front of the computer like I do ;). Happy Brainstorming.
|
All times are GMT -6. The time now is 11:27 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.