Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Webdoone

    (@artus2000)

    I think I found a solution here: stackexchange.com

    But it would be amazing if you could incorporate that or similar solution into your plugin. Thanks for your time.

    Thread Starter Webdoone

    (@artus2000)

    Sure. When your plugin is enabled, access to the post and pages are restricted. But when someone have direct link to the attachment ex: “www.mydomain.com/wp-content/uploads/2020/01/myattachment.jpg” then access for this file is still possible.
    Thats why I am asking if it is possible to restrict access for direct attachment for non logged in users?

    For me this help. I changed 'template' to 'stylesheet' in line 90. And now works both for parent and child theme.

    My solution for this issue step-by-step:

    1. Find this file: /themes/bearded-master/inc/function-admin.php and open it.
    2. At the end of this file you will find this function:

    function bearded_theme_customizer( $wp_customize ) {
        $wp_customize->add_section( 'bearded_logo_section' , array(
    	    'title'       => __( 'Logo', 'bearded' ),
    	    'priority'    => 30,
    	    'description' => __('Upload a logo to replace the default site name and description in the header','bearded'),
    	) );
    	$wp_customize->add_setting( 'bearded_logo' );
    	$wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, 'bearded_logo', array(
    	    'label'    => __( 'Logo', 'bearded' ),
    	    'section'  => 'bearded_logo_section',
    	    'settings' => 'bearded_logo',
    	) ) );
    }
    add_action('customize_register', 'bearded_theme_customizer');

    3. You have to cut all these lines of code and save file function-admin.php without them.
    4. Next you have to find file /themes/bearded-master/function.php and open it.
    5. Paste function at the end of this file but before this ?>
    6. Save it and that’s it!

    I also join to this question, blank page don’t look well.
    In addition this thing also relates to the unsubscribe confirmation page.

    Hi all,

    Yesterday I installed this plugin and also don’t like standard alert pop up window.

    I figured it out by changing standard javascript alert pop up for Sweetalert. It looks pretty well and professional. My knowledge about coding isn’t very good, but I did it without any problem and it is work perfectly.

    Here is step by step instruction how I do that:

    1. First you have to download plugin files from here: Sweetalert

    2. Then you must Unzip downloaded package, and upload two files via ftp to your theme folder: sweetalert.min.js and sweetalert.css
    I uploaded them to new created folder: /sweetalert

    3. Next you have to add this code to the function.php in this way:

    function sweetalert_script () {
        wp_enqueue_script(
            'sweetalert_script',
            get_stylesheet_directory_uri() . '/sweetalert/sweetalert.min.js',
            array( 'jquery' )
        );
    }
    add_action( 'wp_enqueue_scripts', 'sweetalert_script' );
    
    function sweetalert_style ()  {
        wp_enqueue_style( 'style', get_stylesheet_uri() );
        wp_enqueue_style( 'sweetalert_style', get_stylesheet_directory_uri().'/sweetalert/sweetalert.css' );
    }
    add_action( 'wp_enqueue_scripts', 'sweetalert_style' );

    4.Last thing what you need to do is changing all alert calling in the plugin js file. You can find it here: wp-content/plugins/email-subscribers/widget/es-widget-page.js

    You have to change it in this way. For example this line:
    alert("Please enter email address.");

    for this:
    swal({ title: "Error!", text: "Please enter email address.", type: "error"});

    Of course for success messages change type: "error" for type: "success".

    All instructions you can find on the plugin website: Sweetalert
    I hope this helps you and others ??

    Best Regards,
    Adam

    Hi, I don’t know is this a solution for your issue, but I had similar problem and I solved it by changing 10 line in js.js:

    before:
    $(document).ready(function(){

    after:
    jQuery(document).ready(function($){

    Maybe it will help someone.

    Thread Starter Webdoone

    (@artus2000)

    This is it! Thank you very much!

Viewing 8 replies - 1 through 8 (of 8 total)