-
AuthorPosts
-
September 18, 2019 at 11:25 pm #1139743
Hello!
I have followed some of these instructions (which may be totally off, but I know nothing about how to mess with themes/child themes to make things happen) to try and make floating buttons:- https://premium.wpmudev.org/forums/topic/how-to-add-a-sidefloating-contact-button-to-wordpress-site/
- It included things like
- adding a button to the footer.php for the child
- Adding the enqueing thing in functions.php
- Adding some css to styles.css related to the button
Making a child theme
Here is the button:
<div id=”floatingbox”></div>
Here is the CSS:#floatingbox {
position: fixed;
left: 1px;
top: 250px;
width:80px;
height:80px;
z-index:9999;
padding:10px;
}
The only time I could get it to show up was when the child theme was the activated one. Then I could see the button, but not when Enfold was the theme. Any insight would be appreciated!
Thanks in advance.
Max
September 22, 2019 at 7:01 am #1140562Hey Max,
Could you post a link to where we can see the element in question please? Otherwise it’s difficult for us to give you accurate CSS.
Best regards,
RikardSeptember 22, 2019 at 7:23 am #1140571The only time I could get it to show up was when the child theme was the activated one. Then I could see the button, but not when Enfold was the theme. Any insight would be appreciated!
That sounds to me like you think that the child theme is just there to take up changes and then reactivate the parent theme. But that’s not the case. The child theme remains constantly activated and takes over all the functions of the parent theme, and only adds new ones to the styling.
October 2, 2019 at 7:27 pm #1144245Hey All,
Thanks for your help. I ended up getting it working – although there still is a lot I don’t really understand, such as the javascript not working unless it was in the footer along with the html for the button. THank you for letting me know about the child theme having to be active – I didn’t realize that was the case, but with enough persistence I came to that conclusion.
Cheers,
Max
October 2, 2019 at 10:45 pm #1144276Hi,
I’m glad you found a solution. Did you need additional help or shall we close this topic?
Best regards,
Jordan Shannon -
AuthorPosts
- You must be logged in to reply to this topic.