Monday, 1 February 2010
So, this is in response to Freaq’s question on the post Adding Title and Description to Nextgen Gallery Thumbnails. He had a site and he wanted to display the image description in the sidebar, not in the main embedded gallery.
To his credit, I couldn’t figure it out off the top of my head, so he hired my programming team to look into it, and he is kind enough to have given us permission to post the solution we came up with publicly so that if any of you need it it’s here…
Left sidebar page
wp-content\themes\THEME\l_sidebar.php
In left sidebar page we have changed div id from “desc” to “gallery_desc”.
Image Browser page
wp-content\plugins\nextgen-gallery\view\imagebrowser.php
In image browser page we added below mentioned code.
<div id="gal_title" style="display:none;"><b><?php echo ucfirst($image->alttext) ?></b></div>
<div id="gal_desc" style="display:none;"><p><?php echo ucfirst($image->description) ?></p></div>
<script language="javascript" type="text/javascript"> document.getElementById('gallery_desc').innerHTML = document.getElementById('gal_title').innerHTML+document.getElementById('gal_desc').innerHTML;
</script>
In place of
<div class="ngg-imagebrowser-desc"><h6><?php echo $image->description ?></h6></div>
Here we are putting the title & description in hidden div tags, and after loading the page, we allocate these values to left panel div tag having id “gallery_desc”.
Tags: Amp, Content Themes, Desc, Description Document, Div Tags, Document Getelementbyid, Embedded, Gal, Gallery Thumbnails, Image Browser, Image Description, Innerhtml, Moving, Php Image, Plugins, Programming Team, Sidebar, Tag, Top Of My Head
Posted in Wordpress Hacks | No Comments »
Thursday, 17 September 2009
I recently took over the management and development of GigTrak.com – a great booking resource for small to midsized musicians in the US.
My intention is to rapidly and constantly add new features to the site – things that we all need as musicians. I know what I need (and I’ll share full upgrade plans […]
Tags: Booking Resource, Career Management Tool, Feature Requests, Intention, Music Career, Musician, Musicians, New Features, Profiles, Radio, Reply, Ultimate Management
Posted in GigTrak | 5 Comments »
Wednesday, 5 August 2009
I’ve recently started writing and reviewing for BlogCritics.org – check out my first product review…
Book Review: Reverse Google Marketing by Wendy Stevens
Tags: Book Marketing, Book Review, Google, Product Review, Wendy
Posted in Reviews | No Comments »
Tuesday, 4 August 2009
As you probably know by now, I use Wordpress on a lot of different sites – I really think that it is a miraculous piece of software. Recently I’ve been approached by quite a lot of people in the home based business community who are doing Google Adwords advertising on their sites, and need […]
Tags: Business Community, Contact, Contacts, Conversion Code, Conversions, Google, Hack, Home Based Business, Miraculous Piece, Plugins, Url
Posted in Wordpress Hacks | 10 Comments »
Monday, 8 June 2009
In the endless search for pushing the conversion of sales letters and opt-in pages higher and higher, I’ve come across a couple of secrets in my time that have almost invariably made a positive difference in conversion. One of those involves the way that your call to action button is styled. Not to […]
Tags: Action Button, Conversion Website, Conversions, Endless Search, Gurus, Homework, Increasing Sales, Sales Letters, Website Buttons
Posted in Marketing | No Comments »