<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Using an image as accordion title! &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/feed/</link>
		<description></description>
		<lastBuildDate>Fri, 17 Oct 2025 04:18:56 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-211708</guid>
					<title><![CDATA[Using an image as accordion title!]]></title>
					<link>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-211708</link>
					<pubDate>Sat, 21 Feb 2015 12:55:05 +0000</pubDate>
					<dc:creator>arvinashrafi</dc:creator>

					<description>
						<![CDATA[
						<p>Hey forum!</p>
<p>I&#8217;ve been searching the web for some hours and just can&#8217;t seem to find the right way to do this. The thing I want to do is to open up an accordion by using an image. </p>
<p>This is my code for the first image on my website which you can see if you just scroll down a bit. <a href="http://projectchina.se/2015/?page_id=378" title="LINK" target="_blank" rel="nofollow">LINK</a></p>
<p>[block_grid type=&#8221;four-up&#8221; style=&#8221;margin:0;&#8221;][accordion][block_grid_item][image type=&#8221;&#8221; float=&#8221;none&#8221; src=&#8221;<a href="http://projectchina.se/2015/wp-content/uploads/2015/02/222.jpg&#038;#8221" rel="nofollow">http://projectchina.se/2015/wp-content/uploads/2015/02/222.jpg&#038;#8221</a>; href=&#8221;#x-accordion-inner&#8221; class=&#8221;py&#8221; link=&#8221;true&#8221;][accordion_item title="Jonathan Roos"]BLABLABLA[/accordion_item][/block_grid_item][/accordion][/block_grid]</p>
<p>As I said before, by clicking the image I would like to be able to open/close the accordion. Do you know how to do this?</p>
<p>Best regards from Sweden!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-212002</guid>
					<title><![CDATA[Reply To: Using an image as accordion title!]]></title>
					<link>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-212002</link>
					<pubDate>Sun, 22 Feb 2015 04:53:49 +0000</pubDate>
					<dc:creator>Rad</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>Thanks for writing in.</p>
<p>You can&#8217;t mix both accordion and block grid so it&#8217;s not gonna work. Accordion could be inside the block grid item, but accordion shouldn&#8217;t wrap block grid item.</p>
<p>And accordion toggles does not accept an image, but just plain text as title.</p>
<p>What you could do is use background image for each of your toggle.</p>
<p>Example, let say you have this accordion (please check how to create the accordion here <a href="https://theme.co/x/member/kb/shortcode-walkthrough-accordion/" rel="nofollow">https://theme.co/x/member/kb/shortcode-walkthrough-accordion/</a> )</p>
<p><code>&#091;accordion]&#091;accordion_item class=&quot;my-background-1&quot;]&#091;/accordion]</code></p>
<p>And we added <strong>my-background-1</strong> on first accordion item&#8217;s class attribute ( you can use any name you want as long as it&#8217;s valid for class name ).</p>
<p>Then we can add this css at customizer&#8217;s custom css under <strong>Admin &gt; Appearance</strong>. This represent your accordion&#8217;s first item.</p>
<pre><code>.my-background-1 a{

width: 100px;
height: 100px;
background: url(http://domain.com/image-100x100.jpg);
text-indent: -999999px; /* hide text */
overflow:hidden;

}</code></pre>
<p>Now repeat this for you other accordion&#8217;s items. And each should be using unique class names.</p>
<p>Cheers!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-214852</guid>
					<title><![CDATA[Reply To: Using an image as accordion title!]]></title>
					<link>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-214852</link>
					<pubDate>Wed, 25 Feb 2015 12:57:18 +0000</pubDate>
					<dc:creator>arvinashrafi</dc:creator>

					<description>
						<![CDATA[
						<p>Never thought of it that way. Thank you very much!=)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-214995</guid>
					<title><![CDATA[Reply To: Using an image as accordion title!]]></title>
					<link>https://theme.co/archive/forums/topic/using-an-image-as-accordion-title/#post-214995</link>
					<pubDate>Wed, 25 Feb 2015 15:35:08 +0000</pubDate>
					<dc:creator>John Ezra</dc:creator>

					<description>
						<![CDATA[
						<p>You’re most welcome!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

