Share on Individual Images

Posted in: Newspaper
Post count: 263

Hey, so basic question. I know we can simply add the same share code from loop-single.php but what .php page do we customize to add the share to the posts images (when the image is clicked and it goes to that individual image url). I am also looking to insert a Previous and Next navigation below the individual image post if possible.

Post count: 6600

Hi,

I’m not sure how you can do that, you would try to find a plugin that dose that if exists one, there is no theme feature that you can use to achieve that.
About the Prev and Next navigation it’s not easy task and we cannot offer custom work as we work hard on the development, updates, fixes and support.
You can always get a freelancer from sites like: http://studio.envato.com/ if you don’t know how to do it yourself.

Sorry about this!
Thanks for understanding

  • This reply was modified 12 years by Lucian.
  • This reply was modified 12 years by Lucian.
Post count: 263

Ok. What is the file for the individual image?

Post count: 6600

Hi,

The images URL it’s created by WordPress http://screencast.com/t/ZeIWhbqbfN
You can create the share on images event using JavaScript and your code should look something like this:

jQuery().ready(function() {
jQuery(".td-post-text-content img").click({ prevent.default();
     window.open(this.href, \'mywin\',\'left=50,top=50,width=600,height=350,toolbar=0\'); return false;
});
});

This is just an example, it has not been tested I only wanted to show how this can be done.
You can place your script in posts template files http://screencast.com/t/ZUKdyNJgtWee
Hope this helps!

Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.