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

    Hello,

    When I added a Facebook Like button in a regular 1/2 width text area, the pop-up window that opens when the button is clicked doesn’t fully display and hides behind texts. I did not modify the FB Like button itself. I tried adding a z-index value in the FB Like button code but that didn’t resolve the issue.

    Any help would be highly appreciated.

    Screenshot: http://imgur.com/U14B4BX

    URL: http://www.restfuljaw.com

    #165093

    Hello!

    You can add a unique selector for each Avia Elements. Edit functions.php, find this code:

    if(isset($avia_config['use_child_theme_functions_only'])) return;

    Below, add this code:

    add_theme_support('avia_template_builder_custom_css');

    Edit the Text Block element with the FB like button then scroll below. Add a unique css selector on “Custom Css Class” field. For example, add “fb-textblock”.

    You can add something like this on your custom.css or Quick CSS:

    .avia_textblock.fb-textblock {
    position: relative;
    z-index: 9999;
    }
    
    .fb-like.fb_edge_widget_with_comment.fb_iframe_widget span {
    width: 450px !important;
    z-index: 9999;
    position: relative;
    }

    Remove browser cache then reload the page.

    Regards,
    Ismael

    #165781

    Hi, thank you for the quick reply. When I add that line on functions.php I get the following error:
    “Parse error: syntax error, unexpected ‘=’, expecting ‘)’ in /home/content/71/8730971/html/wp-content/themes/enfold/functions.php on line 26”

    After deleting the addition, this error persists. Any clue why?

    #166178

    Hey!

    Can you copy/paste functions.php file on http://snipt.org/ and post the link?

    Regards,
    Yigit

    #167743

    http://snipt.org/Ahhff0

    Here you go. I didn’t make any modifications in the functions.php before creating this thread, so the above snipt should be identical to what’s in the enfold theme package. The error went away when I added a “)” in the comment on line 26 of the attached snipt code.

    After adding that extra “)”, I tried adding “add_theme_support(‘avia_template_builder_custom_css’);” to where you mentioned again, and then it gave me a new error about an unexpected ‘;’, this time in the comment in line 17.

    What’s going on?

    • This reply was modified 11 years, 3 months ago by bunguman.
    #168016

    Hey!

    Please try the code here: http://snipt.org/Ahhje8 – I added the code line to the file (based on Ismaels instructions). You just need to replace the entire Code in functions.php with the code from http://snipt.org/Ahhje8

    Regards,
    Peter

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Facebook Like button z-index?’ is closed to new replies.