Adding a YouTube subscribe button - by MichaelB

This topic has 9 replies, 3 voices, and was last updated 3 years, 2 months ago ago by Robert Hall

  • Avatar: MichaelB
    MichaelB
    Participant
    February 7, 2021 at 20:35

    I have a YouTube subscribe button to my site (see link in private content area) but I would like to do the following:

    1) Ensure it doesn’t disappear after updating the theme.

    2) Have the YouTube subscribe button and Facebook like button on the same row ideally in this order…

    YouTube subscribe button -> Facebook like button -> Social media buttons

    3) Also, I would like to know how to create an HTML button 4. I can only see 1-3 in XStore customiser view.

    I already have the header and footer plugin installed but don’t know what code goes where to save the YouTube button upon a theme update. The Facebook button is fine but I’m referring specifically to the YouTube side of things that I need help with.

    Please, contact administrator
    for this information.
    8 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 8, 2021 at 12:25

    Hello,

    1) If you did not change the parent theme files then you won’t lose your changes.

    2) a) You can use the Static Block to add the buttons code in 2 columns https://prnt.sc/yp94s6 and show this block in header https://prnt.sc/yp975j
    b) Place connection block width buttons in 4 columns instead of 3 to show all the content in one row https://prnt.sc/yp9b60

    3) There is no option to add one more HTML block element. Why do you need that? I see that you did not use HTML 1 block https://prnt.sc/yp9mxd So, why do you need one more if you can use it.
    What YouTube code do you need to save? Similar to the JS code of the FB button?

    Regards

    Avatar: MichaelB
    MichaelB
    Participant
    February 8, 2021 at 21:29

    First of all, thank you for logging and fixing it! You’re a star!

    1) How do I know if I have changed the parent theme files? I just login to WordPress and make changes there and on XStore Customiser. My last sentence at the end of this post should help you tackle my initial question labelled 1) in my post from yesterday…

    2a and 2b) Well explained. Thank you!

    3) I thought I was using HTML 1 block but glad I wasn’t. You’re correct in saying I don’t need it 🙂

    The YouTube code I need is…
    https://developers.google.com/youtube/youtube_subscribe_button

    Of course, not exactly the above. You can see the code I tried to save in the headers and footers plugin + XStore Customiser HTML Block 1.

    Can you login and confirm the code has been saved in headers and footers plugin correctly so that next time I update the theme I don’t lose the YouTube subscribe button?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 9, 2021 at 14:11

    Hello,

    Did you change code in wp-content/themes/xstore? If not then you won’t lose changes after theme files update.

    Can you login and confirm the code has been saved in headers and footers plugin correctly so that next time I update the theme I don’t lose the YouTube subscribe button?

    Take my apologies but we are not personal developers to help with the third-party customization https://themeforest.net/page/item_support_policy Mentioned buttons is not built-in option, so you need to check the documentation by yourself if you added everything according to requirements. Or hire developer here.
    If you added code in Insert headers and Footers plugin settings you won’t lose it after theme update.

    Regards

    Avatar: MichaelB
    MichaelB
    Participant
    February 11, 2021 at 00:49

    Olga – Thanks for your reply. When you say change the code in WP… Do you mean me physically going into the file I.e. FileZilla and editing the code in say notepad or going into the file on WordPress and editing the code manually?

    I’m not sure if I make changes say on Xstore it counts as a change to the WP… Bit.

    My point is I’m not sure if you mean typing coding changes or manually changing font colour for example. Not through coding but clicking.

    Avatar: MichaelB
    MichaelB
    Participant
    February 11, 2021 at 00:50

    On options…

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 11, 2021 at 12:22

    Hello,

    Thanks for your reply. When you say change the code in WP… Do you mean me physically going into the file I.e. FileZilla and editing the code in say notepad or going into the file on WordPress and editing the code manually?

    Yes.

    If you did not edit any code in files in wp-content/themes/xstore then don’t worry about update. If you did then you will lose them after the update.

    Regards

    Avatar: MichaelB
    MichaelB
    Participant
    February 12, 2021 at 02:53

    Thanks Olga!

    You’re the best.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 12, 2021 at 08:58

    Hi

    You are always welcome!

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.