Hi guys,
Right now under the post title is: 17 April 2017 / in Energy and natural resources, Publications /
I would like it to display as: 17 April 2017 > Energy and natural resources, Publications
I want to change the separator from ‘/’ to ‘>’, remove ‘in’, and remove the last separator ‘/’
Test page in private content
Hey FlatText,
Check it here: https://kriesi.at/support/topic/change-breadcrumb-separator/#post-311753
Best regards,
John Torvik
Hi John,
This is for the breadcrumbs on top of the page. The value I want to change is the post date followed by the category. Please see the link in private. I don’t want to change the breadcrumbs separator. I want to change the separator in the Date > Post > Category > Author
To clarify, I’ve added an image showing where I want the change. Added in private
Hi,
Thank you for the update.
Please add the following script in the functions.php file.
function ava_custom_script_mod(){
?>
<script type="text/javascript">
(function($){
$('.single .text-sep').text('>');
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_mod');
Best regards,
Ismael
Thanks, Ismael. That worked, but I’d like to remove the ‘in’ and also the last ‘>’. It points to empty space. Image attached in private.
Hi,
Try adding this css code in Quick CSS (located in Enfold > General Styling):
.single .text-sep.text-sep-cat {
display: none;
}
As for the ‘in’, please edit includes/loop-index.php in the enfold theme folder and find this line of code:
echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
replace it with:
echo '<span class="blog-categories minor-meta">';
Hope this helps ;)
Best regards,
Nikko
Brilliant! Thank you, Nikko!
Hi,
Great! Let us know here in the forums if you need more help.
Best regards,
Sarah