• Hello,

    I’m trying to port the bar from full theme to light theme:

    I copied inc/sharrre.php js/sharrre.php and js/jquey.sharrre.min.js

    to my hueman theme.

    then modified single.php functions.php and theme-options.php according to this:
    https://github.com/presscustomizr/hueman/search?utf8=%E2%9C%93&q=sharrre

    Theme option has the options and I activated the share bar.

    The bar is visible but only twitter button. Clicking on twitter button do nothing…

    I’m missing something…can you help please?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi vrrebels. Is there a reason you don’t want to use the “full” version of the theme that includes the sharebar?

    Thread Starter vrrebels

    (@vrrebels)

    Yes I have already modified 8 file in my child theme.

    If I upgrade to the full theme I have to:

    – re-set everything in the theme-option like it is now
    – merge my modifications to the 8 files
    – hope that nothing is broken in the process

    Did you load (enqueue) the sharrre js file from your child theme?

    if ( is_singular() ) { wp_enqueue_script( 'sharrre', get_stylesheet_directory_uri() . '/js/jquery.sharrre.min.js', array( 'jquery' ),'', true ); }
    Thread Starter vrrebels

    (@vrrebels)

    No but I added that code in the hueman parent function.php like it is in the original theme, so it uses the get_template_directory.

    Anyway there are 2 problems:

    – The share buttons do nothing…surely like Javascript it’s not called.

    – The Facebook and Gmail are not there but they are in the sharrre.php file. That’s the most strange problem.

    I will work more on this today, I will keep the thread updated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add sharrre bar to wp ligth’ is closed to new replies.