• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

make text widget a link

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › make text widget a link

This topic is: resolved
  • This topic has 2 replies, 2 voices, and was last updated 8 years, 5 months ago by bandj.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • October 3, 2014 at 3:57 am #126648
    bandj
    Member

    How would you make a text widget a link so that the whole widget, title and text, would change color on hover?

    October 4, 2014 at 2:32 pm #126772
    jbergen
    Member

    Hi,

    In general, you would want to wrap all of the text in the widget inside the HTML a tag. Then, you would want to make sure you have a CSS rule that specifies the color for the text on hover.

    Example:

    a:hover {
        color: hover_color_here;
    } 

    However, an issue arises when you try to add HTML tags to the title of your widget. When you try to save it, WordPress strips out any HTML tags from the title.

    There are a couple of options to deal with this:

    1) Don't use the text widget's title area, and instead include your title as part of the "main body" portion of the text widget. You can surround your title with HTML heading tags, and wrap the entire contents of the text widget's "main body" with the a tag.

    2) There are various workarounds to get WordPress to display your widget title as a link. I found several in a quick Google search.

    I hope that helps! Let me know if you'd like to follow up about a specific strategy to make this work.

    Jamie


    Jamie @ Ladebug Studios

    October 5, 2014 at 5:22 am #126801
    bandj
    Member

    Thanks Jamie. That's about what I thought I would have to do. I think I've come across some plugins to let you add html to widgets.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble