Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to show favorite and subscribe buttons


  • TheDream18
    Participant

    @oanhtran1804

    Hello,

    How to show favorite and subscribe buttons in mobile? When i zoom screen to mobile screen, topic lost favorite and subscribe buttons. How do i show it on mobile?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

  • TheDream18
    Participant

    @oanhtran1804

    I find out that this class is disappear on mobile screen
    #bbpress-forums li.bbp-header .bbp-reply-content, #bbpress-forums li.bbp-footer .bbp-reply-content
    SO
    i would like to display none for this class.
    ================================================
    FIRST i need to move subscrible and favorite under breakcrumb (top of topic) for sure don’t disappear on mobile by these code:

    function move_subscrible_button() {
    echo ‘Subscrible‘;
    }

    add_action(‘bbp_template_before_single_topic’,’move_subscrible_button’);
    ============================================================================
    OR CODE

    add_filter(‘bbp_template_before_single_topic’,’bbp_get_user_topic_subscriptions’);
    ============================================================================
    Can anyone please what is CORRET change for subscrible and favorite at:
    href=”#new-topic-0″ class=”bbp-new-topic-button button btn input[type=”button”]”
    ———–
    OR
    ———
    ‘bbp_get_user_topic_subscriptions’

    Thanks


    TheDream18
    Participant

    @oanhtran1804

    This code help appear button on Top of single Topic.
    Please help with <a ID to pull the subscrible and favorite button function

    
    // Subscrible button
    function move_subcrible_button() {
    	if ( is_user_logged_in() ) { ?>
    	<a ID="subscription-toggle"> 
    		<span class="fa fa-pencil"></span> my custom subscribe topic
    	</a>
    <?php }
    	else {}
    }
    
    add_action( 'bbp_template_before_single_topic' , 'move_subcrible_button' );
    
    // Favorite button
    function move_favorite_button() {
    	if ( is_user_logged_in() ) { ?>
    	<a ID="favorite-toggle"> 
    		<span class="fa fa-pencil"></span> my custom favorite topic
    	</a>
    <?php }
    	else {}
    }
    
    add_action( 'bbp_template_before_single_topic' , 'move_favorite_button' );
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar