• bk_design

    (@bk_design)


    Hi,

    I am having an issue with adding a FancyBox class to the post-image/attachment and not having the image open in a separate page. In the loop-attachment.php file I added the class to this line:

    sprintf( '<a class="fancy" href="%1$s" title="%2$s">%3$s &times; %4$s</a>',

    Fancybox does work but only when I click on the image and it opens in the “attachment-page” I don’t want to have to open a separate page. I want FancyBox to work right on the post/single page. Does anyone have any suggestions without using a custom field or featured image? I am also not using the FancyBox plugin, I installed it myself on the site I am building.

  • The topic ‘Add FancyBox Class to Post Image’ is closed to new replies.