Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

Is there a way to make a widget title clickable?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Mar 12, 2010, 12:11 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
ie. as in links to another page

Rashell
  #2  
Old Mar 12, 2010, 01:44 PM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
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.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Mar 12, 2010, 03:12 PM
juggledad's Avatar
juggledad
 
22,186 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #4  
Old Mar 13, 2010, 10:34 AM
Rashell's Avatar
Rashell
 
67 posts · May 2009
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
  #5  
Old Mar 13, 2010, 01:37 PM
paulae's Avatar
paulae
 
1,332 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
Would the widget's ID help?
  #6  
Old Mar 14, 2010, 01:37 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
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.
  #7  
Old Mar 14, 2010, 02:01 PM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
I haven't tested it but you might want to look at this plugin for linkable titles.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #8  
Old Mar 14, 2010, 07:30 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
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
  #9  
Old Mar 16, 2010, 04:23 PM
Rashell's Avatar
Rashell
 
67 posts · May 2009
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:
<?php bfa_widget_area('name=WidgetAreaName&before_widget=<div id="%1$s" class="header-widget %2$s">&after_widget=</div>&before_title=<div class="widget-title"><h3><a href="http://myurl.com/category/link/that-changes-per-widget">&after_title=</a></h3></div>'); ?>
Any widget that went into this area would have the page link built in... so I was only going to add 1 widget per new widget area. (I only have 5 plugins to link this way)

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

Last edited by Rashell; Mar 16, 2010 at 05:02 PM.
  #10  
Old Mar 16, 2010, 06:21 PM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
Me thinks you spend way too much time in front of the computer like I do . Happy Brainstorming.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Code Showing up in the Title... How do I make it go away! rohaver Header configuration & styling 2 Jan 23, 2010 11:56 AM
How to make company logo clickable to website? FunBloggin Header configuration & styling 2 Dec 17, 2009 09:50 AM
Make header image clickable? nfdieter Header configuration & styling 2 Nov 5, 2009 08:09 AM
New plugin should make widget flexibility in Atahualpa EVEN better than it is now owenl Atahualpa 3 Wordpress theme 0 Aug 26, 2009 04:49 PM
only on one of my static Pages: how do make the page title NOT show up? petevannuys Atahualpa 3 Wordpress theme 11 Aug 24, 2009 10:56 AM


All times are GMT -6. The time now is 09:52 AM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.