Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1183852

    Hello,

    For a chat application like intercom, I have to put code in the header before the </body> tag.. I tried putting it into my functions.php file of my child theme, (so no hassle with Enfold updates) but that gave an error.

    Can you help me please? I put the code in private content so you can see what kind it is? I’d rather not use another plugin. :)

    Sincerely,
    Morticka

    • This topic was modified 4 years, 9 months ago by Morticka.
    #1183921

    Hey Morticka,

    Please refer to this post – https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-head-section :)

    Best regards,
    Yigit

    #1183972

    Hey Yigit,

    Yes, it worked, thank you, you rock!!

    I only have a problem that it’s right on top of the “go back to top” element (little square box with arrow in it that scrolls with the website) Is it possible to center the “back to top” element on the website?

    UPDATE: I removed the code and put it on another website and now it does not work anymore. I reached out to the developer because I think the problem is at their end, so I’ll get back to you. (I can’t show you any screenshots right now.)

    Sincerely,
    Barb

    #1184000

    Hi Barb,

    Great! Alright, we will keep the thread open and wait to hear from you regarding other site :)

    Please add following code to Quick CSS

    #scroll-top-link {
        right: 50%;
    }

    Best regards,
    Yigit

    #1184233

    Hey Yigit,

    YES, that’s exactely what I was looking for!

    Everything works like a charm now, thank you so, so much Yigit, as always :D

    EDIT: One last question, when I put the CSS in quick css it worked. But before that I put it in style.css of my childtheme and it did not work?

    Sincerely,
    Barb

    • This reply was modified 4 years, 9 months ago by Morticka. Reason: Have one last question
    #1184243

    Hi,

    You might need to add !important rule when you add the code in Style.css file as following

    #scroll-top-link {
        right: 50% !important;
    }

    You are welcome, Barb! Always happy to help :)

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.