Reply To: Portfolio-Cats empty on page load

forums forums Circle Flip Support Portfolio-Cats empty on page load Reply To: Portfolio-Cats empty on page load


Omar
Keymaster
#7442

Hey Michael,

Thank for your feedback!
Please edit the file circleflip/templates/template-portfolio.php
and find the line 115

<li data-dimension="category" d ata-filter=".category-<?php echo esc_attr($category->term_id) ?>">

and change it be

<li data-dimension="category" d ata-filter=".category-<?php echo esc_attr($category->term_id) ?>" class="<?php echo strtolower(esc_html($category->name)) ?>">

And add the following to the Custom Code panel at Theme Options >> General >> Advanced >> Custom Code

<script type="text/javascript">
jQuery.document.ready(function(){
var miclocation = window.location.href;
if (miclocation.indexOf('portfolio-cat') != -1) {
var micisportfolio = miclocation.indexOf('portfolio-cats');
var miclocationlength = window.location.href.length;
var miccat = window.location.href.substring(micisportfolio+15, miclocationlength-1);
jQuery("#circleflip-filters li."+ miccat +"").click()
};
});
</script>

Let me know how it goes, and let me know if you want me to log in and add those edits for you

Cheers