Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #484205

    Hi,

    whenever someone click on share (fb, twitter, etc..) on my portfolio project page it opens in a full screen instead of just simple pop up on top of the window…. any idea how to disable it so it will be just a pop up of share ?

    Thanks a lot

    T

    #484561

    Hi noamman!

    Send us a link to your page and we’ll take a.look. You can set your reply as private if you wish.

    Also be sure to deactivate all plugins while testing.

    Cheers!
    Elliott

    #484563

    Thank you for the reply!

    hope you’ll find the probelm.

    the website is:
    soul-royale.com

    #484589

    Hey!

    Try placing this in the bottom of your functions.php file.

    add_action( 'wp_head', 'enfold_customization_facebook_popup' );
    function enfold_customization_facebook_popup() {
    ?>
    <script type = "text/javascript">
    jQuery(document).ready(function(){
    jQuery('.av-share-link a').click(function(e){
    e.preventDefault();
    window.open(jQuery(this).attr("href"), '', 'width=600,height=400');
    });
    });
    </script>
    <?php
    }
    

    Cheers!
    Elliott

    • This reply was modified 9 years, 11 months ago by Elliott.
    #484632

    when we do it, it shuts down the website and says:
    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/noamgelbart/soul-royale.com/wp-content/themes/enfold/functions.php on line 526

    also, this problem of sharing opens in full screen is not only on fb it’s also for the google+ and twitter… really weird.

    #484881

    by the way, we have been trying to disable all plugins and it doesn’t help.

    please we need your help!

    T

    #485364

    Hey!

    Install a child theme, http://kriesi.at/documentation/enfold/downloads/, and place it in the bottom of the child theme functions.php file.

    Regards,
    Elliott

    #485410

    Hi Elliott,

    thanks for the reply – we’ve already finished the website with all the customization and stuff – we’ve watched the video about the child theme and it says we should have done it from the beginning now when we activate the child theme all of our style is gone.

    so we have activated the parent theme so it will work but can’t enter the code you suggested it crashes everything..

    what can we do?

    Thanks!
    T

    #485450

    Hi!

    When you activate the child theme it will behave like a completely new theme with default settings. There is an option for importing the parent theme settings in Dashboard > Enfold > Import/Export though.

    If your still having trouble after adding the code to the child theme functions.php file then send us a WordPress login and we’ll take a look.

    Cheers!
    Elliott

    • This reply was modified 9 years, 10 months ago by Elliott.
    #485515

    Hi Elliot,

    we tried it but it still doesn’t show the website as good as the parent one (actually it is far from that…)
    isn’t there any other option to fix the share option to show as normal small pop up window and not in full screen?

    Thanks in advanced!

    T

    #485574

    Hi!

    That code will display the site in a popup when you click on the links instead of in a new tab. I’m not sure what you mean by “doesn’t show the website as good as the parent one”. Take a screenshot and highlight exactly what your trying to do so we can get a better idea.

    Regards,
    Elliott

    #485606

    It’s messing around with all the plugins, and changes the color of things…
    is there any place to add it in the parent’s files so it will work instead of the child one?

    thanks

    #485782

    Hi,

    If you have problems with settings/CSS not loading when activating the child theme toggling settings helps. For instance, go to Quick CSS and just type a space and save and your code will be applied, the same goes for colour options etc, just toggle one and save and it should all be applied unless you have made some changes to core files in the parent theme, then you would need to apply them to the child theme as well.

    Regards,
    Rikard

    #485829

    OK! it worked!! thank you so much… Rikard & Elliott for the support:)

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Share button in full screen?!’ is closed to new replies.