PDA

View Full Version : Featured Image



dinogomez
04-18-2013, 12:45 AM
When I click on the Featured Image it opens a Social Image window, then it closes it. on a second click it actually takes me to the post image. It should ONLY open the post.

Thanks

mikemayhem3030
04-18-2013, 05:41 AM
Hi this is because you've told Social Gallery (via the settings) to open your featured images.

You'll need to be more specific in what you want it to open by using CSS selectors for this to work with your theme. Under settings, change "all content" to specific CSS selector and then check out the link on that page for further info.

This wil fix that issue

dinogomez
04-18-2013, 04:06 PM
Hi this is because you've told Social Gallery (via the settings) to open your featured images.

You'll need to be more specific in what you want it to open by using CSS selectors for this to work with your theme. Under settings, change "all content" to specific CSS selector and then check out the link on that page for further info.

This wil fix that issue

I went to the suggested link (CSS selector) description, but I don't understand a word! Unfortunately I'm not to savy when it comes to CSS and code stuff.

I've set Social Gallery to "Post Images", but when reading the blog, to get into a post the featured images are clickable to take me to the post content, that's were the social opens and closes, it doesn't display the image, but it's confusing for users, on the second click it will take you to the post. Within the post Featured images are no clickable and there's no problem.

Thanks.

mikemayhem3030
04-18-2013, 10:06 PM
This is simply because Social Gallery doesn't open HTML pages in the lightbox. When your link goes to another page (which yours do) then if it was to open in Social Gallery, you'd never be able to get to the location "on click" of the link.

What you need to do is either tell Social Gallery not to try and open the featured images in the lightbox, or change your theme code so the featured image links to the media file. It's not a plugin issue, it's a theme issue and the fact your featured images link through to other pages.

For Social Gallery, and in fact almost any lightbox to work the HTML needs to be something like

<a href = "large.JPG"><img src = "small.JPG" /></a> and NOT

<a href = "large.HTML"><img src = "small.JPG" /></a>

Hope this helps.

dinogomez
04-18-2013, 10:34 PM
This is simply because Social Gallery doesn't open HTML pages in the lightbox. When your link goes to another page (which yours do) then if it was to open in Social Gallery, you'd never be able to get to the location "on click" of the link.

What you need to do is either tell Social Gallery not to try and open the featured images in the lightbox, or change your theme code so the featured image links to the media file. It's not a plugin issue, it's a theme issue and the fact your featured images link through to other pages.

For Social Gallery, and in fact almost any lightbox to work the HTML needs to be something like

<a href = "large.JPG"><img src = "small.JPG" /></a> and NOT

<a href = "large.HTML"><img src = "small.JPG" /></a>

Hope this helps.

I honestly don't understand what you're saying! Sorry. My page is in WordPress, not sure if that helps? here's my page: www.DinoGomez.com Thanks!

mikemayhem3030
04-20-2013, 11:55 AM
Have you uninstalled Social Gallery? A different lightbox is popping up.

For featured images to ONLY go to posts, you need to tell Social Gallery in the settings not to open it. You can add class = "noLightbox" to the featured images and they shouldn't open.

I can't describe how to do this without being any clearer. Your options are...

1.) for Galleries on a page where you want to show photos using social gallery wrap your gallery in <div class = "myGallery"> </div> and in Social Gallery choose "Specific CSS selector" under use social gallery on: setting. Then enter .myGallery a:has(img) into the box where it asks you
2.) or... add class = "noLightbox" to your theme where it outputs the featured images

The first option is the easiest

Cheers

dinogomez
04-22-2013, 05:39 PM
Some photos have this note: "Warning: http://www.dinogomez.com/social-gallery/dino-gomez-photography-natalia-and-sean-3 is unreachable." Most are ok, but some display that note? Thanks

mikemayhem3030
04-22-2013, 09:50 PM
Hi, this is to do with Facebook not being able to "see" the URL. Check that your URL isn't giving you a 404 and that facebook can see it.

https://developers.facebook.com/tools/debug

You can paste the URL in there to see what facebook sees.

heytricia
04-26-2013, 03:36 PM
This isn't very practical given that a blog feed often shows post summaries with featured images that click through to the post. It's not a theme issue - it's a usability issue.

Thankfully I understand how to use classes and modify templates. But when I tried adding the class .noLightbox or .noSocialGallery to the <img> tag or to the <a> tag surrounding the image, it didn't work. So I had to go into the plugin settings and use:

.entry-summary a:has(img)

That worked. Thing is, I would rather code this functionality into my template and re-use that code for each custom theme than go into the plugin settings on every project. (We bought a developer's license.) So what am I doing wrong in the code? Am I misunderstanding something?


This is simply because Social Gallery doesn't open HTML pages in the lightbox. When your link goes to another page (which yours do) then if it was to open in Social Gallery, you'd never be able to get to the location "on click" of the link.

What you need to do is either tell Social Gallery not to try and open the featured images in the lightbox, or change your theme code so the featured image links to the media file. It's not a plugin issue, it's a theme issue and the fact your featured images link through to other pages.

For Social Gallery, and in fact almost any lightbox to work the HTML needs to be something like

<a href = "large.JPG"><img src = "small.JPG" /></a> and NOT

<a href = "large.HTML"><img src = "small.JPG" /></a>

Hope this helps.

mikemayhem3030
04-30-2013, 07:08 AM
Hello

There isn't a developers license there's an extended license but this still only allows single use and not mutliple template use. So if you're using this plugin for 10 clients, you would need to purchase 10 extended licenses, if you're charging your client for the template build, or 10 regular licenses if you're not charging for the end use.

Extended License
Use, by you or one client, in a single end product which end users can be charged for

Regular License
Use, by you or one client, in a single end product which end users are not charged for

heytricia
04-30-2013, 05:00 PM
Well that's important to know! :confused:

My manager purchased this thinking it was a dev license. We have no need for the extended license and have only used the plugin in one site. Is it possible to get a refund on the difference in price between an extended and regular license? Then, in the future, we would just buy additional licenses on a per-site basis.



Hello

There isn't a developers license there's an extended license but this still only allows single use and not mutliple template use. So if you're using this plugin for 10 clients, you would need to purchase 10 extended licenses, if you're charging your client for the template build, or 10 regular licenses if you're not charging for the end use.

Extended License
Use, by you or one client, in a single end product which end users can be charged for

Regular License
Use, by you or one client, in a single end product which end users are not charged for

heytricia
04-30-2013, 05:03 PM
And how about that note on .noLightbox or .noSocialGallery?

mikemayhem3030
05-03-2013, 07:50 AM
Well that's important to know! :confused:

My manager purchased this thinking it was a dev license. We have no need for the extended license and have only used the plugin in one site. Is it possible to get a refund on the difference in price between an extended and regular license? Then, in the future, we would just buy additional licenses on a per-site basis.

The extended is what you need if you're selling thr site afterwards (i.e. using it on a client build), the regular is if you just want it running on your own personal blog..

I'm not convinced by the Envato (CodeCanyon) way of licensing as like you say, most people think of the extended license as a developers license anyway.

As for refunding the difference, we personally can't help here as it's Envato (CodeCanyon) who deal with all that, you'd have to contact them and ask them about developers licenses, maybe extended is meant to act like a developers license but it's certainly not clear from the wording above.

the .noLightbox should work, do you definitely have it tagged to a class (i.e. class = "noLightbox") in the page/post HTML?

If you're putting it into a disclude CSS selector you'll have to find what the html element is surrounding the image you don't want to open.