Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1341363

    How is the category displayed in the post slider (standard business style)
    I need urgent help

    #1341440

    Hey Markus,
    The standard business will not show the categories in the post slider, please use the modern business instead
    2022-02-19_160158.jpg
    These two styles are very similar, but if you want the modern business adjusted some we can help, just explain what you would like adjusted.
    I didn’t find a post slider on your site so please create a test page.

    Best regards,
    Mike

    #1341512

    Hi Mike,
    I have now chosen the modern business style. So far everything fits.
    One question, I would like to have the category above the title and I would like to give each category a different color.

    You can find the post slider on the start page (Willkommen) under the heading:
    “Bleiben Sie informiert und auf dem aktuellsten Stand”

    #1341516

    Hi,
    To move the blog categories I added this script to your child theme functions.php

    function blog_categories_above_entry_title() { ?>
        <script>
    (function($){
    $( 'article.post-entry' ).each(function() {
    $( this ).find( '.blog-categories.minor-meta' ).css({'top':'unset'}).insertBefore( $(this).find('.slide-entry-title.entry-title').css({'padding-top':'0'}));
    });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'blog_categories_above_entry_title');

    but did you want each category to be a random color or a specific color?
    I see you have 4 post categories.

    Best regards,
    Mike

    #1341522

    I want to assign a separate color to each category. For example

    – Rechtsberatung Color red
    – Steuerberatung color yellow
    – Wirtschaftsberatung advice color blue

    #1341526

    Hi,
    Thanks for the feedback I adjusted your script to this:

    function blog_categories_above_entry_title() { ?>
        <script>
    (function($){
    $( 'article.post-entry' ).each(function() {
    $( this ).find( '.blog-categories.minor-meta' ).css({'top':'unset'}).insertBefore( $(this).find('.slide-entry-title.entry-title').css({'padding-top':'0'}));
    $('.blog-categories.minor-meta a:contains("Steuerberatung")').css({'color':'yellow'});
    $('.blog-categories.minor-meta a:contains("Rechtsberatung")').css({'color':'red'});
    $('.blog-categories.minor-meta a:contains("Wirtschaftsberatung")').css({'color':'blue'});
    });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'blog_categories_above_entry_title');

    Please clear your browser cache and check.

    Best regards,
    Mike

    #1341588

    Hi Mike,
    Perfect.
    thank you for your help

    #1341596

    Hi,

    Glad we could be of help. Please do not hesitate to open another thread should you need anything else. We will be closing this thread for now.

    Have a nice day.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Category in Postslider’ is closed to new replies.