Photo gallery widget/links
-
I just set up a photo gallery widget on my front page and would like to know if we can create links when clicking on them to go directly to the post or page in question.
If so, how?
Thanks
http://legerplusbleucoaching.com/The blog I need help with is: (visible only to logged in users)
-
Hi
Maybe look at the HTML code generated by WordPress when using a gallery and modify the attribute “href” of the tag “a”. If WordPress doesn’t generate some editable code for a gallery, you’ll have to give up or to post your images outside of any gallery.
I can’t confirm because I always display my photos without using a gallery to be sure that they are correctly indexed by the search engines as the bots are unable to look at the Javascript code most of the time whereas they can read HTML code and I suspect the gallery to use Javascript code probably with no “noscript” fallback.
-
Sorry, I am a newbie with all this, don’t quite understand what you’re saying.
But thanks anyway -
There are two means of editing your content on WordPress:
– the visual editor
– the text editor
When you insert a gallery, an image, a video, WordPress generates some source code with a subset of HTML which is a presentation language. You don’t see this source code in the visual editor but you can see it in the text editor. The tag “a” is documented here:
http://www.quackit.com/html/tags/html_a_tag.cfm -
Ha, thanks, ok I get it now, much clearer.
But where do I find the text editor with the HTML code for the gallery (if there is one?) so I can try to change to a tag “a”
-
You can find how to switch between editors here:
http://en.support.wordpress.com/editors/I advise you to create a draft and to insert a single gallery to see what it generates in the text editor.
-
- The topic ‘Photo gallery widget/links’ is closed to new replies.