How to make google index only images of a page? - iframe

I have a page that contains a lot of images, but it's a page designed to be in an iframe inside an other page. I dont want this page to be indexed to prevent visitors to be stuck in this iframe, but I want to make index all the pictures inside the iframe.
The iframe is a picture slider that opens over the page, there is previous/next buttons and the picture. I find bad to put in the meta robots "NOINDEX, FOLLOW" and to make a link on the pictures to the originial picture... because the picture is already fullscreen. My other option is to put a link back to the parent page, but because the iframe is opened over the page, it would be bad to have a page opened over the same page. what do I do ?
If I do not index this page, only my thumbnails will show up in google image. do you hate thumbnails in google images ?

I finally indexed the page and put a link back to the source page using a javascript condition : if the page is not opened in an iframe, show the link to go back to the previous source page.

Related

Getting iframe link clicks to replace entire current page, instead of rendering within the iframe?

I have a page, home.html, which is just comprised of 2 iframes, iframeA and iframeB. The content of iframeA and iframeB are various links from my site. When I click on any link within iframeA or iframeB, I don't want that link to open within the iframe itself. Instead, I want the clicked link content to render in the entire existing browser window. Is there any way to achieve this simply, without complicated javascript?

wordpress menu link target to _iframe

Instead of having the link opened in a new tab I would like to the link to be opened in an iframe that's on the same page.
Example:
I have my front page with an iframe on it. If I click on the menu items i would like to have the urls loaded in the iframe.
I can't seem to find an answer for this.
Alter the iframe in your front page as below
Make sure the iframe contains a name attribute (name="main-section")
<iframe name="main-section" src="home.html"></iframe>
In your menu items make sure the target attribute redirects to main-section (target="main-section"). This is an important step.
Example:
I am pretty sure you can achieve the above steps in wordpress.

Wordpress Posts in Lightbox, how do I make google index these and not the single.post page

This is my travel blog http://www.laaventura.co.uk
There is only a homepage with all post opening in a iframed thickbox lightbox
The thickbox class and extra link text is added with this javascript call after the page is loaded
a(".more-link").addClass("thickbox");
a(".more-link").attr("href", function() {
return this.href + "?KeepThis=true&TB_iframe=true&height=750px&width=500"
})
This adds the lightbox link to all read more links.
What I assume is that google will indexed the single-post.php file rather than opening the post in the lightbox on the home page is there any way to make google link directly to the lightbox?
You are exactly right... bots will not index content within the iframe, but WILL index the single posts. Not a good scenario. ;-)

URL not displayed in Browser

I have wordpress site: www.example.in
Site is working fine,when I click at any other link it works but no sub urls comes in browser
for example if click at "Blog" blog page loads but URL not changing in Browser's url box.
I checked out the website.. the problem here is that you have a frame on your page.. and that frame loads the content from securespin.in.. So basically the main page that is opened in the browser is the index page of linksmart.in.. which doesnot change on clicking on any of the links.. what changes is the content of the frame on this page (content from securespin.in).. hence everything works perfectly but the browser URL wont change.. cuz the page is still the same.. hope it makes sense..!!
If you want the URLs to work for linksmart there are quite a few options. First and simplest will be to host the same website as securespin.in on the linksmart server and let go the Frame..!!
Second option would be to just the change the hash in the URL not the URL as such.. so your URL can be www.linksmart.in#Blog.. for that you can use the following code on the click of the links on the pages on securespin.in
document.parent.location.hash = "Blog";

Like button on each page

I have a like button on my main page (master page in asp.net).
I added a like button on each dynamic page.
When I try to enter the link:
http://www.friend.co.il/details.aspx?id=2321
to one of the dynamic page in face book developer page:
http://developers.facebook.com/docs/reference/plugins/like/
I get the same number of like as the total site number and not just a number for the specific page.
Any body know whats I'm doing wrong?
Using Facebook's URL Linter on your dynamic page's URL shows that it has Open Graph tags that refer to your website's main page. As a result, Facebook thinks that the canonical URL for http://www.friend.co.il/details.aspx?id=2321 is http://www.friend.co.il/.
You should either remove the meta tags from your subpages, or construct them so that they properly represent the content on each page.
Remove your og:url meta tag and also be sure to not include the Facebook javascript file multiple times like you are currently doing.

Resources