Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #752416

    Hi Enfold team,

    is there a code to do this?

    All the best, Tobi

    #752857

    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

    #755025

    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

    #755166

    Thanks Nikko,

    all done perfectly.

    All the best, Tobi

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Avia magazine – open links in new tab’ is closed to new replies.