WordPress.org

Support

Support » Plugins and Hacks » Hacks » Add Link to Only Part of Widget Title

Add Link to Only Part of Widget Title

  • For the default search sidebar widget, I want to add “( Advanced Search )” next to the widget title “Search”.

    I wish this Advanced Search to be hyperlinked to a webpage on my site.

    Can anyone advise as to how I would go about this?

    Thanks Jordan

Viewing 1 replies (of 1 total)
  • Here is the idea (not exact code) how you can pull that off:

    1. Add text widget to a widget area (let’s call it MAIN)

    2. Add your link code:

    <a id="webpage" href="http://anothersite.com/">Webpage<a/>

    3. Use CSS to make that MAIN widget area block relative with position relative

    http://www.w3schools.com/css/css_positioning.asp

    4. Use absolute positioning for the webpage link

    #webpage {
       positon:absolute;
       top:10px;
       right: 10px;
    }

    You have to change the top and right values until you get it right with trials and errors…

Viewing 1 replies (of 1 total)
  • The topic ‘Add Link to Only Part of Widget Title’ is closed to new replies.