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">
- The topic ‘Fancybox (not plugin) and id's in href’ is closed to new replies.