<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Support Forum - Topic: change hover icons for portfolio images only</title>
		<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only</link>
		<description>Support Forum - Topic: change hover icons for portfolio images only</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 03:58:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/change-hover-icons-for-portfolio-images-only" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Beard on "change hover icons for portfolio images only"</title>
			<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only#post-46794</link>
			<pubDate>Sun, 18 Mar 2012 05:28:00 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">46794@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62; Glad I could help :)&#60;br /&#62;
Let us know if there's anything else. &#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Chris
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brouge on "change hover icons for portfolio images only"</title>
			<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only#post-46727</link>
			<pubDate>Sat, 17 Mar 2012 18:00:18 +0000</pubDate>
			<dc:creator>brouge</dc:creator>
			<guid isPermaLink="false">46727@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;chris this is working fantastic!&#60;br /&#62;
thank you very much!&#60;br /&#62;
thomas
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "change hover icons for portfolio images only"</title>
			<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only#post-46675</link>
			<pubDate>Sat, 17 Mar 2012 05:28:05 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">46675@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I did some poking around and you can try something like the following: Check if your image is preceded by a div with a class that defines your page as a portfolio page, then add your preferred class.&#60;/p&#62;
&#60;p&#62;In your custom.js you'll find this first line, add the second line which I've added in there and it should assign your class when it's on a page were your image is within a portfolio_entry. You can do the same for specific pages as each page has it's own class/id.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(jQuery(this).attr(&#38;#39;href&#38;#39;).match(/(jpg&#124;gif&#124;jpeg&#124;png&#124;tif)/)) $newclass = &#38;#39;lightbox_image&#38;#39;;
if(jQuery(this).parents().hasClass(&#38;#39;portfolio_entry&#38;#39;)) $newclass =&#38;#39;YOURCLASSHERE&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you combine this with what you've previously coded this should work for everything.&#60;/p&#62;
&#60;p&#62;Let me know if this works :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brouge on "change hover icons for portfolio images only"</title>
			<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only#post-46246</link>
			<pubDate>Wed, 14 Mar 2012 15:20:11 +0000</pubDate>
			<dc:creator>brouge</dc:creator>
			<guid isPermaLink="false">46246@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hey chris i am sorry, but can you please move the whole topic to the display forum where it belongs.&#60;br /&#62;
thank you
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brouge on "change hover icons for portfolio images only"</title>
			<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only#post-46197</link>
			<pubDate>Wed, 14 Mar 2012 09:47:53 +0000</pubDate>
			<dc:creator>brouge</dc:creator>
			<guid isPermaLink="false">46197@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hi chris for now it would be enough to change the hover image for all portfolio items (on every page that uses a portfolio).&#60;br /&#62;
check out the links:&#60;br /&#62;
all my blog images have a plus symbol: &#60;a href=&#34;http://www.mathemitnullplan.de/neuigkeiten&#34; rel=&#34;nofollow&#34;&#62;http://www.mathemitnullplan.de/neuigkeiten&#60;/a&#62;&#60;br /&#62;
all my portfolio images have a powerpoint symbol: &#60;a href=&#34;http://www.mathemitnullplan.de/lehrmaterial&#34; rel=&#34;nofollow&#34;&#62;http://www.mathemitnullplan.de/lehrmaterial&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;i achieved this letting the custom.js check if the image file attribute match a certain extension&#60;br /&#62;
e.g. jpg, gif, jpeg, tiff get the plus-hover while .png gets the powerpoint-hover.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(jQuery(this).attr(&#38;#39;href&#38;#39;).match(/(jpg&#124;gif&#124;jpeg&#124;tif)/)) $newclass = &#38;#39;lightbox_plus&#38;#39;;
if(jQuery(this).attr(&#38;#39;href&#38;#39;).match(/(png)/)) $newclass = &#38;#39;lightbox_powerpoint&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;therefore i need to change the picture formats which is not a really satisfying way to do.&#60;/p&#62;
&#60;p&#62;but check out the hover on the homepage: &#60;a href=&#34;http://www.mathemitnullplan.de/&#34; rel=&#34;nofollow&#34;&#62;http://www.mathemitnullplan.de/&#60;/a&#62;&#60;br /&#62;
the contact site: &#60;a href=&#34;http://www.mathemitnullplan.de/kontakt&#34; rel=&#34;nofollow&#34;&#62;http://www.mathemitnullplan.de/kontakt&#60;/a&#62;&#60;br /&#62;
and the book sites: &#60;a href=&#34;http://www.mathemitnullplan.de/buchvorstellung/analysis&#34; rel=&#34;nofollow&#34;&#62;http://www.mathemitnullplan.de/buchvorstellung/analysis&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;they are all png, but i created a new class for each one in the custom.js so an image gets an hover effect that is independant from the file format of the image.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(jQuery(this).hasClass(&#38;#39;buy&#38;#39;)) $newclass = &#38;#39;lightbox_buy&#38;#39;;
if(jQuery(this).hasClass(&#38;#39;plus&#38;#39;)) $newclass = &#38;#39;lightbox_plus&#38;#39;;
if(jQuery(this).hasClass(&#38;#39;book&#38;#39;)) $newclass = &#38;#39;lightbox_book&#38;#39;;
if(jQuery(this).hasClass(&#38;#39;skype&#38;#39;)) $newclass = &#38;#39;lightbox_skype&#38;#39;;
if(jQuery(this).hasClass(&#38;#39;powerpoint&#38;#39;)) $newclass = &#38;#39;lightbox_powerpoint&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;i hope you can present a solution for the portfolio images that is independant from the image format too by simply adding the class &#34;powerpoint&#34; to all the images there.&#60;br /&#62;
best regards&#60;br /&#62;
thomas&#60;/p&#62;
&#60;p&#62;ps: the coolest thing will be of course to change the hover effect for each post individually by simply give them a custom class from the backend. maybe this is possible with a plugin that is working with the theme.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "change hover icons for portfolio images only"</title>
			<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only#post-46139</link>
			<pubDate>Wed, 14 Mar 2012 03:27:39 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">46139@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;would you like to change the hover image for (all and only) portfolio items on specific pages? For example: all your images on your portfolio page will have a different hover image from all other pages. Or do you really plan to mix it up somehow? It seems like an elaborate way to achieve this.&#60;/p&#62;
&#60;p&#62;What I'm asking is: On which pages do you plan on using this? Can you provide links? This way we'll have a better understanding which allows us to provide better solutions.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Chris
&#60;/p&#62;</description>
		</item>
		<item>
			<title>brouge on "change hover icons for portfolio images only"</title>
			<link>http://www.kriesi.at/support/topic/change-hover-icons-for-portfolio-images-only#post-45608</link>
			<pubDate>Sat, 10 Mar 2012 11:30:13 +0000</pubDate>
			<dc:creator>brouge</dc:creator>
			<guid isPermaLink="false">45608@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hi,&#60;/p&#62;
&#60;p&#62;i know that it's possible to change the icons when hovering over an image opened by light box.&#60;br /&#62;
it's even possible to add new classes with having more than the default icons available (&#60;a href=&#34;http://www.kriesi.at/support/topic/using-magnify-hover-with-normal-images)&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/topic/using-magnify-hover-with-normal-images)&#60;/a&#62;.&#60;br /&#62;
i want to change the icon for the portfolio items only.&#60;/p&#62;
&#60;p&#62;i know that i can change simply the &#34;mangify.png&#34; but that will change the hover icons for the feature images in the blog too.&#60;br /&#62;
in the custom.js i added&#60;br /&#62;
&#60;code&#62;if(jQuery(this).hasClass(&#38;#39;powerpoint&#38;#39;)) $newclass = &#38;#39;lightbox_powerpoint&#38;#39;;&#60;/code&#62;&#60;br /&#62;
and give the image link via css&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;.lightbox_powerpoint{
background: transparent url(http://www.mathemitnullplan.de/wp-content/uploads/powerpoint.png) no-repeat center center;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;now i don't know where to give the portfolio images the class = &#34;powerpoint&#34; and need some help.&#60;/p&#62;
&#60;p&#62;best regards&#60;br /&#62;
thomas
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
