Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • #787939

    sounds great, thank you. If the update is out, I will remove my temporary fix.

    #788328

    Hi,


    @Chris
    : Great!

    @everyone: For everyone else, please replace the postslider.php file with the following.

    https://pastebin.com/L887SJtE

    And then add this filter in the functions.php file:

    add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1);
    function avf_postslider_show_catergories_mod($category) {
     	$category = 'show_business'; 
    	return $category;
    }

    Best regards,
    Ismael

    #788976

    Thanks, Ismael, I deleted my snippet and replaced the complete postslider.php with your pastebin code, works fine, thanks!

    Only one thing concerning this topic:

    where in your Pastebin code can I add the word

    Category:

    in front of the particular category name?

    #789486

    Hi,

    Add this code in the functions.php file so you don’t have to modify the core files.

    function ava_custom_script_mod(){
    ?>
    <script>
    (function($){
    	function a() {
    		$('.blog-categories.minor-meta').prepend('<p class="blog-categories-title">Category: </p>');
    	}
    
    	a();
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod');

    And this code in the Quick CSS field.

    .blog-categories.minor-meta > * {
        display: inline-block;
    }

    For additional inquiries, please create a new thread. Thank you.

    Best regards,
    Ismael

Viewing 4 posts - 31 through 34 (of 34 total)
  • The topic ‘Blog posts element not showing categories anymore’ is closed to new replies.