1,723
edits
m |
m |
||
Line 168: | Line 168: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
And there's also one more item to configure when using the | And there's also one more item to configure when using the "lightbox" method. A dedicated page (WhatEverURL) needs to be created for the lightbox to open, with any custom CSS associated with making pages render correctly in a theme. And the below code needs to also be inserted into the functions.php file in order to only have the functionality run on the pages it is intended to run on;<syntaxhighlight lang="text"> | ||
// This If Function is TRUE if the requested Page is for the intended links | // This If Function is TRUE if the requested Page is for the intended links | ||
// When FALSE, the $CONTENT is simply returned as is with no changes | // When FALSE, the $CONTENT is simply returned as is with no changes | ||
Line 207: | Line 207: | ||
add_filter ('the_content', 'display_sources_and_additional_information'); | add_filter ('the_content', 'display_sources_and_additional_information'); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<br /> | <br /> |