Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Adding Follow Button on Single Post Pages

This topic is resolved
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Dennis Jover
    Participant
    • 6 Topics
    • 10 Posts
    @dennisjover

    Hi there,

    I am using the Buddypress Followers plugin. From the plugin’s github page (https://github.com/r-a-y/buddypress-followers/wiki/Add-a-follow-button-on-a-regular-WP-page) they mentioned of a code snippet that can be used to add the follow button to a regular WP page. Below is the code snippet:

    <?php
    if ( function_exists( ‘bp_follow_add_follow_button’ ) ) :
    if ( bp_loggedin_user_id() && bp_loggedin_user_id() != get_the_author_meta( ‘ID’ ) ) {
    bp_follow_add_follow_button( array(
    ‘leader_id’ => get_the_author_meta( ‘ID’ ),
    ‘follower_id’ => bp_loggedin_user_id()
    ) );
    }
    endif;
    ?>

    Is there a way to add the follow button using the above code snippet? Please see below screen shots of specific areas in the the Single Post page where I would want the Follow Button to appear.

    Thanks!
    Dennis

    Manathan
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 6266 Posts
    @themodactyl

    Hi @dennisjover, 🙂

    To add this code snippet to your site, we recommend that you use the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    Cheers,

    Dennis Jover
    Participant
    • 6 Topics
    • 10 Posts
    @dennisjover

    Hi @themodactyl,

    Thanks for getting back to me.

    Is there a way to specify where in the theme I can make this code snippet work? For example, make the Follow Button appear on the place I highlighted in the screen shots I attached?

    Best,
    Dennis

    Manathan
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 6266 Posts
    @themodactyl

    Hi @dennisjover,

    To change this feature to your website, the best practice is to create your own child theme and override the template.

    For more about creating child themes, please read the following post:

    Creating a Child Theme

    If you have never done this before, we recommend you to require the services from a nearby web developer or from Envato Studio freelancers (https://studio.envato.com/explore/websites-programming). This web platform gives you access to developers who have already experience with theme customizations, and for very competitive prices.

    Best regards,

Roboraptor 🦖
Themosaurus Topic Closer

Hi there,

This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!

Best regards,
The Themosaurus team.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Adding Follow Button on Single Post Pages’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site