• Resolved Seospan

    (@seospan)


    Hello !

    I have 2 problems with rio portfolio :

    -I can’t have categorie with special chars (éèà…) in it, if I do create one, my portfolio elements doesn’t apepar when I click on it on main page.

    Example : http://www.blushandcrush.com/dev/
    The test gallery is in every category, but as you can see the ones with special characters doesn’t work (“Beauté”, “Effets Spéciaux”, …).

    I really need to have those categories, making sites in french I just can’t avoid using special chars !

    -Rio interacts badly with contact form 7 : I lose acess to some options accessible under a tab while Rio in activated…

    If anyone has an idea !

    Thanks a lot !

    https://wordpress.org/plugins/rio-portfolio/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Seospan

    (@seospan)

    If anybody one day has the same problem, I found a solution :

    In rio-portfolio.php file, the filter tabs calls category slug (the url-friendly name, without special chars) as class to identify, but the grid calls the name and not the slug.

    Obviously name and slug are not the same as soon as you have anything such as accentuated chars or /();, etc

    So when javascript compares the class of the filter and of the content, nothing matches.

    My solution : in rio-portfolio.php, line 660 :

    $rio_portfolio_content.='<li data-id=”id-‘.$count.'” data-type=”‘; if(!empty($terms)){ foreach ($terms as $term) { $rio_portfolio_content.= strtolower(preg_replace(‘/\s+/’, ‘-‘, $term->name)). ‘ ‘; } } $rio_portfolio_content.='” class=”images-item” style=”height:’.$portfolio_thumb_height.’px; width: ‘.$portfolio_thumb_width.’px;”>’;

    replace $term->name by $term->slug :

    $rio_portfolio_content.='<li data-id=”id-‘.$count.'” data-type=”‘; if(!empty($terms)){ foreach ($terms as $term) { $rio_portfolio_content.= strtolower(preg_replace(‘/\s+/’, ‘-‘, $term->slug)). ‘ ‘; } } $rio_portfolio_content.='” class=”images-item” style=”height:’.$portfolio_thumb_height.’px; width: ‘.$portfolio_thumb_width.’px;”>’;

    This way the slug is used to identify content, no more problem with special characters !

    Plugin Author riosisgroup

    (@riosisgroup)

    Hi SEO Span,

    Thank you for trying out our plugin and the solution provided. We are looking into both the issues, will make necessary changes to the plugin and will get back to you asap.

    Rio Team

    thank you Rio Team.I’m same problem above.I’ve fixed.

    Plugin Author riosisgroup

    (@riosisgroup)

    Hi thngvn,

    Welcome 🙂
    Thanks for supporting us.

    Riosis Group

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Problem with special chars’ is closed to new replies.