Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #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
    • Making a child theme

    • 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
    • Here is the button:
      <div id=”floatingbox”>


      Try FLFE

      </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

    #1140562

    Hey 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,
    Rikard

    #1140571

    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!

    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.

    #1144245

    Hey 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

    #1144276

    Hi,

    I’m glad you found a solution. Did you need additional help or shall we close this topic?

    Best regards,
    Jordan Shannon

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