Hi Enfold team,
is there a code to do this?
All the best, Tobi
Hi Enfold Team,
Got two more issues with the magazine element:
– How do i remove the date inside the entries?
– How do I remove the All tab?
a.all_sort_button.active_sort {
display: none;
}
works only on first page. after changing tab it’s there again. Also first magazine page should show only elements of first tab/category (still shows all with that code).
– And still i need to open links in new browser tab.
Thanks, Tobi
Hi,
You can open magazine links in new tab by adding this code at the bottom of functions.php:
function magazine_newtab_script(){
?>
<script type="text/javascript">
(function($){
function newtab() {
jQuery("#top").find(".av-magazine-title a").attr("target", "_blank");
}
newtab();
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'magazine_newtab_script');
As for the two other issues, try this css code and add to Quick CSS:
.av-magazine-sort a.all_sort_button,
#top time.av-magazine-time {
display: none;
}
Hope this helps :)
Best regards,
Nikko
Thanks Nikko,
all done perfectly.
All the best, Tobi