WordPress.org

Ready to get started?Download WordPress

Forums

Add Link to Only Part of Widget Title (2 posts)

  1. jordanhuxley
    Member
    Posted 1 year ago #

    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

  2. David Choi
    Member
    Posted 1 year ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic