• Resolved szkhuang

    (@szkhuang)


    Hi, I am creating a short trivia in Chinese using HD Quiz and it has been a great experience so far. I was able to translate and customize most texts with the exception of the share to Facebook and Tweeter buttons. I know the two buttons are linked to a small images of the buttons; is there any way for me to edit the plugin so the they can instead be linked to images in Chinese located elsewhere?

    Thanks

    • This topic was modified 2 years, 10 months ago by szkhuang.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Harmonic Design

    (@harmonic_design)

    Hi szkhuang,
    I think you will need to do two things.

    First, you’ll want to replace the existing images with ones more appropriate for your language.

    Second, you’ll want to update the “share text” <– this is the one thing that is not yet translatable in HD Quiz (but a translate feature for this is coming soon!).

    To update the share images, you can simply replace the actual images with whichever ones you like best. The images are located in ./hd-quiz/includes/images/ so you can log into your host and use the file manager to replace the images with anything else you wish.

    If this does not work for you, then you can upload whatever images you want and edit the file ./hd-quiz/includes/functions.php to replace the path to the images. The line 725 contains the Facebook image and line 733 contains twitter.

    On these lines, you will see something similar to <?php echo plugins_url('/images/fbshare.png', __FILE__); ?> <– you can replace that whole thing with the URL of the new image you’d like to use instead.

    To update the share text, you’ll want to edit ./hd-quiz/includes/js/hdq_script.js. Alllllll the way at the bottom, on line 959 you will see the text for Facebook share (note: only if using the APP ID). Line 715 is where you can update the twitter share text.

    If you are more of a “techie” or have experience making small changes to files like this, then these changes will be super easy for you. However, if this is something you’ve never done before or are otherwise not comfortable with doing this, please contact me at harmonicdesign.ca and I can make these changes for you.

    Thread Starter szkhuang

    (@szkhuang)

    Thank you. Your suggestion worked smoothly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing the Facebook and Tweeter share buttons’ is closed to new replies.