Nusserer Posted November 15, 2015 Share Posted November 15, 2015 Hi, I am currently using a mix of normal colors and textures (= two colors) for my color selection filter. So I have for example the color dark green as an icon and the text "dark green" next to it. The filter works if I click on the icons but not if I click on the color text. The problem seems to be that the text link is missing a "/", but I don't know where I can edit my template file. Example: Link icon: ...12-all-sweets#/color-dark_green Link text: ...12-all-sweets#color-dark_green Ironically, it even works for some of my text links with the missing "/" but only for half of them. I am thankful for any ideas... Thanks in advance, Christian Link to comment Share on other sites More sharing options...
fatum Posted May 30, 2016 Share Posted May 30, 2016 I solve it this way: - Open /themes/yourthemename/modules/blocklayered/blocklayered.tpl - Search for {$value.link} and replace it with: {$value.link|regex_replace:'#':'/#'} This is the smarty equivalent of php str_replace. We are goign to find "#" char in the url variable and replacing it with "/#". That's it ;-)I hope this can help you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now