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

    Hello,

    I am aware that this might be custom programming and therefore a task for a programmer but I thought I’d ask anyway and maybe get lucky with a do_action for functions.php or something like that :)

    Is it possible to display instead of 1 star => 5 stars with the ALB element “Separation line / blank space”? With the same settings in the backend? For example by changing the HTML output? Or is it only possible if I add an icon with 5 stars via the icon manager? And if so, what do I have to pay attention to? Is there a tutorial for this?

    I am very much looking forward to the answer.

    Thanks in advance and best regards,
    Marcel

    Instructions

    #1341437

    Hey Marcel,
    Thanks for your question, you can add custom icons to Enfold via Fontello, please see our documentation here, but I didn’t find any 5-star icons there, so probably the easiest solution would be to modify the html of your current Separation line with jQuery.
    Try adding this code to the end of your functions.php file in Appearance ▸ Editor:

    function five_star_seperator() { ?>
        <script>
    (function ($) {
    $(".avia-builder-el-10 .av-seperator-icon").attr('data-av_icon','' );
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'five_star_seperator');

    this is the expected results
    2022-02-19_009.jpg

    While this will work on your current page I recommend adding a custom class to the seperator element such as five-star and replace the class .avia-builder-el-10 in the script above so you can add this to other pages on your site.

    Best regards,
    Mike

    #1341532

    Hi Mike,

    absolutely great. Thank you very much. This works perfectly :)

    Best regards,
    Marcel

    #1341536

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Show 5 stars instead 1 star with ALB element "Separation line / blank space"’ is closed to new replies.