• Resolved Luis Martins

    (@lmartins)


    While I appreciate the features available with this plugin, to some customers its actually bit overwhelming and I would prefer to limit the options they can manage. Is this possible with the plugin?

    Im also having an issue with the live refresh, which isn’t happening to me while using the Customiser. I have to hit reload to see any change. Any know issue?

    https://www.ads-software.com/plugins/easy-google-fonts/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sunny Johal

    (@sunny_johal)

    Hi lmartins,
    The only way you can limit options for each font control is by hiding them using CSS. Which options are you looking to hide?

    The only reason why live refresh wouldn’t be working is because your theme may be triggering some errors in the customizer. Does the plugin work when you have one of the default WordPress themes activated?

    Sunny

    Thread Starter Luis Martins

    (@lmartins)

    Ok, thank you.
    I’ll go for a simpler option then.

    Thanks anyway.

    Hi Sunny, great plugin ??

    In relation to this, I was interested in removing positioning tab, which, to be honest, I dont really see margin,padding,display belong to the typography section/panel.
    Is there any chance of removing it with php?
    Thank you very much

    Plugin Author Sunny Johal

    (@sunny_johal)

    Hi alvaro05,
    You can remove that tab by hiding it using CSS. Just copy and paste this PHP code into your functions.php file (or in a plugin) and you should be good to go:

    function custom_egf_hide_positioning_panel() {
        ?>
        <style type="text/css">
            .tt-font-control .tt-customizer-tabs [data-customize-tab="font-positioning"] {
                display: none;
            }
        </style>
        <?php
    }
    add_action( 'customize_controls_enqueue_scripts', 'custom_egf_hide_positioning_panel', 20 );

    Let me know how you get on. Cheers

    Sunny

    Sunny thank you very much for your answer.
    I am creating a theme and wanted to recommend using this plugin. So I’m trying to integrate it correctly.
    Thanks, Css is an option, but I wanted to know if there was a way of doing it with pure php (somewhere like bbb_egf_default_controls?). I don’t want the user to touch the css from the inspector, change some setting he shouldn’t and end up not knowing how to put it back (because it doesn’t appear). Anyway Ill try to check some workaround.

    Best
    Alvaro

    Plugin Author Sunny Johal

    (@sunny_johal)

    Hi Alvaro,
    There isn’t a way to currently do this using php filters (and it is unlikely that I will implement this in future versions unless I see a good use case for it).

    I still think you should go with the code example I gave you as opposed to checking some workaround. Here’s why:

    1. It accomplishes what you are trying to achieve.
    2. Your average user is unlikely to load up the inspector.
    3. Even if the user does change something they can simply press the reset button to reset that font control to normal.

    Let me know how you get on. Also, I was wondering if you could rate this plugin when you get a moment. Cheers

    Sunny

    Nice catch the reset button.
    Alright, I will go with this, thank you very much. Sure, Ill rate right now.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to limit options available’ is closed to new replies.