[resolved] Fancybox (not plugin) and id's in href (2 posts)

  1. sr4136
    Posted 4 years ago #

    I installed the newest Fancybox yesterday-- not a plugin, but within my template files. Fancybox works great when I use it to popup images.

    When I try to use Fancybox to pop up inline content, it does not work because wordpress is prepending my site's url to the #selector in my link's href.

    I have already implimented a fix for this, which strips out my site's url, but it seems rather roundabout. Is there a way to make wordpress not prepend the url?

    Code I enter:

    <a href="#contentpop" class="fancybox">

    Code that WordPress generates:

    <a href="http://mysite.com/wordpress/category/post#contentpop" class="fancybox">

  2. sr4136
    Posted 4 years ago #

    Turned out to be Google Analytics for WordPress plugin...

Topic Closed

This topic has been closed to new replies.

About this Topic