-
AuthorPosts
-
February 18, 2022 at 6:28 pm #1341363
How is the category displayed in the post slider (standard business style)
I need urgent helpFebruary 19, 2022 at 11:06 pm #1341440Hey Markus,
The standard business will not show the categories in the post slider, please use the modern business instead
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,
MikeFebruary 20, 2022 at 5:21 pm #1341512Hi 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”February 20, 2022 at 6:26 pm #1341516Hi,
To move the blog categories I added this script to your child theme functions.phpfunction 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,
MikeFebruary 20, 2022 at 7:00 pm #1341522I want to assign a separate color to each category. For example
– Rechtsberatung Color red
– Steuerberatung color yellow
– Wirtschaftsberatung advice color blueFebruary 20, 2022 at 7:43 pm #1341526Hi,
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,
MikeFebruary 21, 2022 at 9:18 am #1341588Hi Mike,
Perfect.
thank you for your helpFebruary 21, 2022 at 9:43 am #1341596 -
AuthorPosts
- The topic ‘Category in Postslider’ is closed to new replies.