WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Linking from a Wdget Title

[Resolved] Linking from a Wdget Title

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author RavanH

    @ravanh

    What is the exact link code you are using in the widget title?

    <a href="#contact_form_pop">Click Here for a Quote Today!</a>
    
    <div style="display:none" class="fancybox-hidden">
        <div id="contact_form_pop">
         [contact-form-7 id="19" title="Service Request"]
        </div>
    </div>
    Plugin Author RavanH

    @ravanh

    OK put this in the widget title:

    <a href="#contact_form_pop" class="fancybox">Click Here for a Quote Today!</a>

    (notice that class there!)

    And then put the rest of your code in the text body of a text widget. Avoid having the whole form wrapped in a H3 (widget title) tag.

    Didnt work. The widget automatically removed the code and left the Click Here….

    BTW – I am using a standard text widget.

    Plugin Author RavanH

    @ravanh

    OK, then try NOT using the title field (leave it empty) and paste this code as widget content:

    <h3><a href="#contact_form_pop" class="fancybox">Click Here for a Quote Today!</a></h3>
    
    <div style="display:none" class="fancybox-hidden">
        <div id="contact_form_pop">
         [contact-form-7 id="19" title="Service Request"]
        </div>
    </div>

    I’m assuming here that your widget titles use the H3 tag but that might be different on your theme. And you might need to add a class to the H3 tag to make it conform all other widget titles…

    That is exactly what I have been doing as a workaround. That works, I was just hoping to get it working “correctly”.

    Plugin Author RavanH

    @ravanh

    It’s a WordPress thing…

    Thanks RavanH.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Linking from a Wdget Title’ is closed to new replies.