• Resolved hdpixeldesign

    (@hdpixeldesign)


    Hello,
    I use a theme that has a social share bar and would like to include this in the single property listing.

    I have found the page “real-estate-manager\templates\single” and added the following snippet and all works well “presscore_display_share_buttons_for_post( ‘post’ );”

    However, when the plugin is updated I will lose the changes so I was wondering if you could help me add this as a hook please as I have tried to create a child plugin but I guess it does not work the same as child themes

    any advice would be much appreciated

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Hi, Please paste following code in functions.php file of your child theme

    add_action( 'rem_single_property_contents', 'rem_social_share_buttons', 80, 1 );
    
    function rem_social_share_buttons($property_id){
    	presscore_display_share_buttons_for_post( 'post' );
    }

    You can change 80 to some other number to change its position. Its basically priority.

    Regards

    Thread Starter hdpixeldesign

    (@hdpixeldesign)

    you are a star, much appreciated, thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘adding hooks’ is closed to new replies.