![]() |
Couple of minor fixes
Hello, v3 upgrade went well. Now just trying to match the visuals that i had in my v1 store.
1. Category Widget Style. I believe the currently selected category would get an li class="active" style. I tried to add this to the new category widget settings but i couldn't get it to work properly. 2. Store search replacing default wordpress search. The custom code to replace the default search no longer works in v3. Do you have the new code for this? Thanks. |
Hi
1. I changed the default category widget style to add the class="active" css to the li element. You can either edit yours or simply go to Factory > Views > Widgets > Categories > View Menu > Reset this view. That will delete any changes you made but add the class active stuff. Or just make the changes yourself like this: ![]() 2. Are you editing your theme's template files? Eric |
Thanks for #1. Any idea how I would now a class to the 2nd <ul> only? I had <ul class="level2"> for any child categories.
The search box I just had added code to my header. Sorry I deleted some of the code because it was giving me an error but this is what I still have left. <form method="post" action=""> <div class="search"> <input type="text" onfocus="if(this.value=='search...') this.value='';" onblur="if(this.value=='') this.value='search...';" value="search..." size="20" class="inputbox" alt="Search" maxlength="20" id="mod_search_searchword" name="dfrs"><input type="image" onclick="this.form.searchword.focus();" src="<?php bloginfo('template_directory'); ?>/images/searchButton.gif" class="button" value="Search"> </div> <input type="hidden" value="<?php echo get_option('dfr_page_for_store'); ?>" name="page_id" /> There was a php if statement and a php code in the action that was rendering the error so I removed it. |
Sorry that last part probably wasn't clear. Here is the code from this thread i was using?
/showthread.php?t=697 |
Hi
Quote:
They are a little tricky to implement and even harder to explain but basically you can define a format of HTML for every level in your category list. You do this by assigning id's to category lists. Here's the code that accomplishes what you are intending to do: Code:
[category.list before='<ul>' after='</ul>'] |
Quote:
Eric |
Quote:
Eric |
Thanks Eric. Both codes worked very nicely.
Just one small addition to the nested categories - The child li doesn't get an active class when selected. Thanks. |
This ought to work:
Code:
[category.list before='<ul class="level<?php echo $depth; ?>">' after='</ul>'] |
All times are GMT -5. The time now is 12:58 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.