<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Script Solution&#187; parent</title>
	<atom:link href="http://www.openscriptsolution.com/tag/parent/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Highlight The Current Category Parent Menu in Atahualpa Theme of WordPress</title>
		<link>http://www.openscriptsolution.com/2009/11/30/how-to-highlight-the-current-category-parent-menu-in-atahualpa-theme-of-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2009/11/30/how-to-highlight-the-current-category-parent-menu-in-atahualpa-theme-of-wordpress/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 03:17:31 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[child]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[parent]]></category>
		<category><![CDATA[selected]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=930</guid>
		<description><![CDATA[After modifying the page menu in Atahualpa theme of WordPress in order to display the highlighted or selected page parent menu at this article: How to Highlight The Current Page Parent Menu in Atahualpa Theme of WordPress, then this following modification will also do the same thing, but for the category menu. As we have [...]]]></description>
			<content:encoded><![CDATA[<p>After modifying the page menu in <strong>Atahualpa</strong> theme of WordPress in order to display the highlighted or selected page parent menu at this article: <a href="http://www.openscriptsolution.com/2009/11/29/how-to-highlight-the-current-page-parent-menu-in-atahualpa-theme-of-wordpress/" target="_blank">How to Highlight The Current Page Parent Menu in Atahualpa Theme of WordPress</a>, then this following modification will also do the same thing, but for the category menu. As we have known, both page and category can be included in the header menu of the WordPress theme. Therefore, in order to implement this modification, then we simply edit the <strong>css.php</strong> file belongs to the theme above. <span id="more-930"></span></p>
<p>Open your <strong>\wp-content\themes\atahualpa\css.php</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2449
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">div<span style="color: #666666; font-style: italic;">#menu2 ul.rMenu li.current-cat &gt; a:link,</span></pre></td></tr></table></div>

<p>then before that line, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2448
2449
2450
2451
2452
2453
2454
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">div#menu2 ul.rMenu li.current-cat-parent &gt; a:link, 
div#menu2 ul.rMenu li.current-cat-parent &gt; a:active, 
div#menu2 ul.rMenu li.current-cat-parent &gt; a:hover, 
div#menu2 ul.rMenu li.current-cat-parent &gt; a:visited {
	background-color: #<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cat_menu_bar_background_color_hover'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>;
	color: #<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'cat_menu_bar_link_color_hover'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>;
	}</pre></td></tr></table></div>

<p>Now each time the child category menu being selected, then its parent category menu also will be highlighted or selected.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F11%2F30%2Fhow-to-highlight-the-current-category-parent-menu-in-atahualpa-theme-of-wordpress%2F&amp;title=How%20to%20Highlight%20The%20Current%20Category%20Parent%20Menu%20in%20Atahualpa%20Theme%20of%20WordPress" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/11/30/how-to-highlight-the-current-category-parent-menu-in-atahualpa-theme-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Highlight The Current Page Parent Menu in Atahualpa Theme of WordPress</title>
		<link>http://www.openscriptsolution.com/2009/11/29/how-to-highlight-the-current-page-parent-menu-in-atahualpa-theme-of-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2009/11/29/how-to-highlight-the-current-page-parent-menu-in-atahualpa-theme-of-wordpress/#comments</comments>
		<pubDate>Sun, 29 Nov 2009 11:39:30 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Atahualpa]]></category>
		<category><![CDATA[child]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[parent]]></category>
		<category><![CDATA[selected]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=926</guid>
		<description><![CDATA[If you are currently using Atahualpa theme, then this modification is for you! This following code will highlight your current page parent menu based on the selected child page menu that being selected. This is useful for those of you who have so many page menus which have the page child menu, and you want [...]]]></description>
			<content:encoded><![CDATA[<p>If you are currently using <strong>Atahualpa</strong> theme, then this modification is for you! This following code will highlight your current page parent menu based on the selected child page menu that being selected. This is useful for those of you who have so many page menus which have the page child menu, and you want to know which page parent menu is currently having the selected page child menu. Of course, your website visitor also will feel so comfortable since they will be able to know that they have selected the certain menu based on that selected page parent menu. <span id="more-926"></span></p>
<p>Open your <strong>\wp-content\themes\atahualpa\css.php</strong>, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2423
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* &quot;current&quot; page and hover, first part old version */</span></pre></td></tr></table></div>

<p>before that line, please insert this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>2422
2423
2424
2425
2426
2427
2428
2429
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">/* &quot;current&quot; page parent and hover, first part old version */
div#menu1 ul.rMenu li.current_page_parent &gt; a:link, 
div#menu1 ul.rMenu li.current_page_parent &gt; a:active, 
div#menu1 ul.rMenu li.current_page_parent &gt; a:hover, 
div#menu1 ul.rMenu li.current_page_parent &gt; a:visited {
	background-color: #<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page_menu_bar_background_color_hover'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>;
	color: #<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$bfa_ata</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'page_menu_bar_link_color_hover'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>;
	}</pre></td></tr></table></div>

<p>Now each time you select or click the certain child page menu, then its parent will be automatically highlighted.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F11%2F29%2Fhow-to-highlight-the-current-page-parent-menu-in-atahualpa-theme-of-wordpress%2F&amp;title=How%20to%20Highlight%20The%20Current%20Page%20Parent%20Menu%20in%20Atahualpa%20Theme%20of%20WordPress" id="wpa2a_4"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/11/29/how-to-highlight-the-current-page-parent-menu-in-atahualpa-theme-of-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Make Parent Menu Selected When Child Menu Was Selected in Blockcategories Module of PrestaShop</title>
		<link>http://www.openscriptsolution.com/2009/11/24/how-to-make-parent-menu-selected-when-child-menu-was-selected-in-blockcategories-module-of-prestashop/</link>
		<comments>http://www.openscriptsolution.com/2009/11/24/how-to-make-parent-menu-selected-when-child-menu-was-selected-in-blockcategories-module-of-prestashop/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 10:44:25 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[PrestaShop]]></category>
		<category><![CDATA[blockcategories]]></category>
		<category><![CDATA[child]]></category>
		<category><![CDATA[highlight]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu highlighted]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[parent]]></category>
		<category><![CDATA[selected menu]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=909</guid>
		<description><![CDATA[This following modification will make the ability to automatically highlight or select the parent menu when the child menu was selected in blockcategories module of PrestShop. This modification applied to the original modification that created by Marghoob Suleman at the PrestaShop Discussion Forum: [module-modified] categories menu modified. You can see its final result demo in: [...]]]></description>
			<content:encoded><![CDATA[<p>This following modification will make the ability to automatically highlight or select the parent menu when the child menu was selected in <strong>blockcategories</strong> module of <a href="http://www.prestashop.com" target="_blank">PrestShop</a>. This modification applied to the original modification that created by Marghoob Suleman at the PrestaShop Discussion Forum: <a href="http://www.prestashop.com/forums/viewthread/10769/P0/modules___development/modulemodified_categories_menu_modified" target="_blank">[module-modified] categories menu modified</a>. You can see its final result demo in: <a href="http://www.e-fila.com/" title="The Real Indonesian Stamps Source" target="_blank">e-fila.com</a>. If you want to implement this modification, then do not forget to backup your original files. <span id="more-909"></span></p>
<ol>
<li>
Open your <strong>\modules\blockcategories\blockcategories.tpl</strong> file, and replace all of the contents of file with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$isCustomDhtml</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$module_dir}</span>ddsmoothmenu.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>link href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$module_dir}</span>ddsmoothmenu.css&quot;</span> rel<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;stylesheet&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span> media<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;all&quot;</span> <span style="color: #339933;">/&gt;</span>
<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$js_dir}</span>tools/treeManagement.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;!--</span> Block categories module <span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;categories_block_left&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;block&quot;</span><span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>h4<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span>l s<span style="color: #339933;">=</span><span style="color: #0000ff;">'Categories'</span> mod<span style="color: #339933;">=</span><span style="color: #0000ff;">'blockcategories'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>h4<span style="color: #339933;">&gt;</span>
  <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$isCustomDhtml</span><span style="color: #009900;">&#125;</span>
  <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;smoothmenu1&quot;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ddsmoothmenu&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> from<span style="color: #339933;">=</span><span style="color: #000088;">$blockCategTree</span><span style="color: #339933;">.</span>children item<span style="color: #339933;">=</span>child name<span style="color: #339933;">=</span>blockCategTree<span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$smarty</span><span style="color: #339933;">.</span><span style="color: #b1b100;">foreach</span><span style="color: #339933;">.</span>blockCategTree<span style="color: #339933;">.</span>last<span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
      <span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
    <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
  <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
  	<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;block_content&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;margin:0;padding:0&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>ul <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;tree {if <span style="color: #006699; font-weight: bold;">$isDhtml</span>}dhtml{/if}&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;margin:0;padding:0&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> from<span style="color: #339933;">=</span><span style="color: #000088;">$blockCategTree</span><span style="color: #339933;">.</span>children item<span style="color: #339933;">=</span>child name<span style="color: #339933;">=</span>blockCategTree<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$smarty</span><span style="color: #339933;">.</span><span style="color: #b1b100;">foreach</span><span style="color: #339933;">.</span>blockCategTree<span style="color: #339933;">.</span>last<span style="color: #009900;">&#125;</span>
						<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
						<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$branche_tpl_path</span> node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
		<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>	
  <span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span> <span style="color: #339933;">/</span>Block categories module <span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\modules\blockcategories\category-tree-branch.tpl</strong> file, and then replace all of the contents of file with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>li style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;margin:0;padding:0; &quot;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$last</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;last&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&gt;</span>
&nbsp;
  <span style="color: #339933;">&lt;!--</span> Begin of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>	
	<span style="color: #339933;">&lt;</span>a id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;menu_{<span style="color: #006699; font-weight: bold;">$node</span>.children|@count}&quot;</span> style<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;padding:5px; padding-right:0;&quot;</span> href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$node</span>.link|escape:htmlall:'UTF-8'}&quot;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentCategoryId</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;selected&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentParentId</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentRootId</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;previousselected&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
	title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$node</span>.desc|escape:htmlall:'UTF-8'}&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$node</span><span style="color: #339933;">.</span>name<span style="color: #339933;">|</span>escape<span style="color: #339933;">:</span>htmlall<span style="color: #339933;">:</span><span style="color: #0000ff;">'UTF-8'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;!--</span> <span style="color: #990000;">End</span> of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>children<span style="color: #339933;">|@</span><span style="color: #990000;">count</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #339933;">&lt;!--</span> Begin of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>
		<span style="color: #339933;">&lt;</span>ul <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentCategoryId</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentParentId</span> <span style="color: #339933;">||</span> <span style="color: #000088;">$node</span><span style="color: #339933;">.</span>id <span style="color: #339933;">==</span> <span style="color: #000088;">$currentRootId</span><span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;selected&quot;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;!--</span> <span style="color: #990000;">End</span> of modified by Masino Sinaga<span style="color: #339933;">,</span> August <span style="color: #cc66cc;">16</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2009</span> <span style="color: #339933;">--&gt;</span>
&nbsp;
		<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> from<span style="color: #339933;">=</span><span style="color: #000088;">$node</span><span style="color: #339933;">.</span>children item<span style="color: #339933;">=</span>child name<span style="color: #339933;">=</span>categoryTreeBranch<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$smarty</span><span style="color: #339933;">.</span><span style="color: #b1b100;">foreach</span><span style="color: #339933;">.</span>categoryTreeBranch<span style="color: #339933;">.</span>last<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$tpl_dir</span><span style="color: #339933;">./</span>category<span style="color: #339933;">-</span>tree<span style="color: #339933;">-</span>branch<span style="color: #339933;">.</span>tpl node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'true'</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span>
	        		<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #000088;">$tpl_dir</span><span style="color: #339933;">./</span>category<span style="color: #339933;">-</span>tree<span style="color: #339933;">-</span>branch<span style="color: #339933;">.</span>tpl node<span style="color: #339933;">=</span><span style="color: #000088;">$child</span> last<span style="color: #339933;">=</span><span style="color: #0000ff;">'false'</span><span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
		<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
		<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\modules\blockcategories\ddsmoothmenu.css</strong> file, and replace all of the content of file with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
modified for prestashop
marghoob suleman - marghoobsuleman.com
*/</span>
.ddsmoothmenu<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">bold</span> <span style="color: #933;">12px</span> Verdana<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#414141</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*background of menu bar (default state)*/</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">100</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">list-style-type</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Top level list items*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Top level menu link items style*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E9E9E9</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*background of menu items (default state)*/</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dashed</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#374853</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#smoothmenu1</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style-position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">outside</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*IE6 hack to get sub menu links to behave correctly*/</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFAA55</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #E9E9E9; /*background of menu items (default state)*/</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">8px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">dashed</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#374853</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #3333ff;">:link</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #3333ff;">:visited</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#374853</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFAA55</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #B9D2E0; /*background of menu items during onmouseover (hover state)*/</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #6666ff;">.previousselected</span><span style="color: #00AA00;">&#123;</span> 
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFAA55</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #0093f0; */</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li a<span style="color: #6666ff;">.selected</span><span style="color: #00AA00;">&#123;</span> 
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FF7F00</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* #0093f0; */</span> 
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*1st sub level menu*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*collapse all sub menus to begin with*/</span>
<span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*Sub level menu list items (undo style from Top level List Items)*/</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul li<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">list-item</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*All subsequent sub menu levels vertical offset after 1st level sub menu */</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul li ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Sub level menu links style */</span>
<span style="color: #6666ff;">.ddsmoothmenu</span> ul li ul li a<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span> <span style="color: #933;">13px</span> Verdana<span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">178px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*width of sub menus*/</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-top-width</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">dashed</span> <span style="color: #cc00cc;">#c3c3c3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* ######### CSS classes applied to down and right arrow images  ######### */</span>
&nbsp;
.downarrowclass<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.rightarrowclass<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* ######### CSS for shadow added to sub menus  ######### */</span>
&nbsp;
.ddshadow<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">silver</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.toplevelshadow</span><span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/*shadow opacity. Doesn't work in IE*/</span>
opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.8</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* end menu css */</span></pre></td></tr></table></div>

</li>
<li>
Open your <strong>\modules\blockcategories\ddsmoothmenu.js</strong> file, and find this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>12
13
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
arrowimages: {down:['downarrowclass', 'modules/blockcategories/right.gif', 23], right:['rightarrowclass', 'modules/blockcategories/right.gif']},</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>12
13
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">//Specify full URL to down and right arrow images (23 is padding-right added to top level LIs with drop downs):
arrowimages: {down:['downarrowclass', '{$module_dir}right.gif', 23], right:['rightarrowclass', '{$module_dir}right.gif']},</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>75
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					$targetul.css({top:0+&quot;px&quot;, left:(this._dimensions.subulw)+&quot;px&quot;, width:this._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>75
76
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					//$targetul.css({top:0+&quot;px&quot;, left:(this._dimensions.subulw)+&quot;px&quot;, width:this._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)
					$targetul.css({top:0+&quot;px&quot;, left:(this._dimensions.subulw)+&quot;px&quot;, width:this._dimensions.subulw+'px', display:'block'});</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>84
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">						this.$shadow.css({overflow:'', width:this._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:this._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>84
85
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">						//this.$shadow.css({overflow:'', width:this._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:this._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime)
						this.$shadow.css({overflow:'', width:this._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px', height:this._dimensions.subulh+'px', display:'block'})</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>89
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">				$targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>89
90
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">				//$targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)
				$targetul.css({display:'none'});</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>94
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					this.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime)</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>94
95
96
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">					//this.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime)
					//alert(this.$shadow + &quot; &quot; + this.$shadow.id);
					this.$shadow.css({display:'none'});</pre></td></tr></table></div>

<p>Find again this code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>99
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">	$mainmenu.find(&quot;ul&quot;).css({display:'none', visibility:'visible'})</pre></td></tr></table></div>

<p>then replace with this following code:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>99
</pre></td><td class="code"><pre class="js" style="font-family:monospace;">	$($mainmenu).find(&quot;ul&quot;).css({display:'none', visibility:'visible'});</pre></td></tr></table></div>

</li>
</ol>
<p>Hopefully this will be helpful for you.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F11%2F24%2Fhow-to-make-parent-menu-selected-when-child-menu-was-selected-in-blockcategories-module-of-prestashop%2F&amp;title=How%20to%20Make%20Parent%20Menu%20Selected%20When%20Child%20Menu%20Was%20Selected%20in%20Blockcategories%20Module%20of%20PrestaShop" id="wpa2a_6"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/11/24/how-to-make-parent-menu-selected-when-child-menu-was-selected-in-blockcategories-module-of-prestashop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
