Forcing template with colorbox
-
Hi everybody. I am trying to use colorbox to show the content of my posts into a modal box when i click on “more” etc.
Of course the problem gets when we’re talking about template. When i open the post, i can see the Single Post menu, along with menu, footer and other parts i don’t really need in the modal box.
I could modify the single post menu, but i don’t want that when users google a single post are drawn to a menuless, footerless page.At the moment i am using a link like
< a class=”colorbox-link” href=”<?php the_permalink() ?> #content” >
this calls correctly the single post template to the given point, but doesn’t strips out the #content.
I can see this possible solutions: to force somehow with a function to strip out the #content, or to force the colorbox to open with another template.
Any hints? 🙂 Thanks in advance
- The topic ‘Forcing template with colorbox’ is closed to new replies.