When i go to the next section og uses the toggles/accordions on the page, it adds the class for the clicked item in the hyperlink.
– That doesn’t look professional.
How to fix it?!
Hi qenibas!
link you have provided does not work for me. Can you please check?
Regards,
Andy
Hi. I edited the post now.
It’s because of some damn “temporary link” :-) Sorry.
Hi!
You can refer to this post – http://kriesi.at/documentation/enfold/add-anchors-to-your-page-for-single-page-navigation/ and give your Color Section elements a unique ID’s : )
Regards,
Yigit
Yeah but i don’t want any. Don’t want to show that you opened an accordion on a page with a #..
Shouldn’t be important :D
Hi!
Please try adding following code to Functions.php file in Appearance > Editor
function add_custom_target(){
?>
<script>
jQuery(window).load(function(){
document.location.href = String( document.location.href ).replace( "#/", "" );
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_target');
Regards,
Yigit
Hi. That didn’t work.
My page kept on loading (blinking, actually)
I just saw your site, when you open fx a toggle – it doesn’t say #toggle-id-1 in the url.
Hey!
Please refer to this post – http://kriesi.at/documentation/enfold/custom-tab-and-toggle-ids-for-prettier-url-hashes/ and change ID’s as needed :)
Regards,
Yigit