exclude certain categories from ultimate Facebook


So, i'd like to set certain categories of posts to have the Facebook 'Like' on the bottom (after content) as compared to on the top.

I've got it set for 'top' normally, and would rather not have to add manual shortcodes. How can we set certain categories to be 'below' and leave the rest 'above'?

  • Predrag Dubajic

    Hey @Griffin,

    Hope you're doing well today :slight_smile:

    This is not something possible to do withing the plugin but you can try doing it with some CSS code to position the like box to bottom of your content based on the category.
    For example something like this should work just change category name from FirstCategory and SecondCategory to your category names:

    .category-FirstCategory .wdfb_like_button,
    .category-SecondCategory .wdfb_like_button {
        position: absolute;
        bottom: 50px;

    Or you can try doing it with some jQuery based on category, this is not tested but it should help you get started:

    if (is_category( array( 9, 'first-category', 'Second category' ) ) ) {
    	function move_like_button() { ?>
    		<script type="text/javascript">
    			jQuery(function() {
    <?php }
    add_action( 'wp_footer', 'move_like_button' );

    You can add the code to your child theme functions.php or create new mu-plugin.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.