[Plugin: NextGEN Custom Fields] Problems with NextGen Custom Fields and Elliot Theme
-
I am trying to use the NGG Custom Fields plugin and everything is working well – except…In the theme I’m using (Elliot – Themeforest) the theme author set up the image to open in a full screen view onclick. In the full screen view the default Title and Description are being called like this (from a custom.js file):
// set the description from the image at the description holder function setImageDescription(title, desc){ $('#image-description .title').text(title); $('#image-description .desc').text(desc); return false; }Then there is a placeholder div # named image-description located in the header.php file. This div is either assigned a .hide or .show depending on the users actions:
<!-- image description --> <div id="image-description"> <h2 class="title"></h2> <div class="desc"></div> </div> <!-- ENDS image description -->I want to add too more values from the new custom fields I created using this plugin but I don’t understand how to insert them into the #image-description div using the method above. I guess I don’t understand the .text(title) and .text(desc) part.
How can I do something like:
$('#image-description .occupation').text(THE OCCUPATION CUSTOM FIELD DATA FROM PLUGIN HERE);(the two custom fields I am trying to implement are Photographer Name and Occupation)
http://ww.wp.xz.cn/extend/plugins/nextgen-gallery-custom-fields/
The topic ‘[Plugin: NextGEN Custom Fields] Problems with NextGen Custom Fields and Elliot Theme’ is closed to new replies.