Forum Replies Created

Viewing 15 replies - 31 through 45 (of 76 total)
  • Forum: Plugins
    In reply to: [Antispam Bee] Not working
    Thread Starter aryanrajseo

    (@aryanrajseo)

    Thank you, I added that.

    Recently it was in Pending comments, Now it is in Spam with reason Local DB Spam. share.getcloudapp.com/L1uzZQ5m

    Recently about 2k+ spam comments in 1 week ??

    I will see and wait, if it will continue, will turn off comments on the blog.

    Forum: Plugins
    In reply to: [Antispam Bee] Not working
    Thread Starter aryanrajseo

    (@aryanrajseo)

    Thank you.

    Following code in functions.php will work. Correct?

    function antispam_bee_patterns() {
        add_filter( 'antispam_bee_patterns', 'antispam_bee_add_custom_patterns' );
    }
    add_action( 'init', 'antispam_bee_patterns' );
     
    // Determine individual filters (author, host, body, ip, email). Separate multiple regular expressions with |
    function antispam_bee_add_custom_patterns($patterns) {
    	
    	// custom pattern
    	$patterns[] = array(
    		'body' => '\b[a-z]{30}\b',
    		'name' => '\b[a-z]{10}\b',
    	);
    
    	return $patterns;
    }
    Forum: Plugins
    In reply to: [Antispam Bee] Not working
    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi,

    Thank you for showing the way to block comments with additional patterns. Unfortunately, each comment is different but looks similar.

    Here is some recent comments https://share.getcloudapp.com/rRuExlEk

    I turned off the comments for now.

    It was working perfectly, works on other sites but facing this on one site from last 1 month.

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Thank you.

    Seems like It would be difficult to replace when we made the new install on same domain. It will work when we want to replace things with existing setup.

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi,

    I was trying to restore the DB from live to local having all the path and wp-content and plugins same but restoring the DB only.

    It is not possible?

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi,

    Thank you so much for putting your time in this issue. I understand now and will remember to add height and width in SVG.

    Thanks once again for creating Grids.

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi, Thank you for taking time and testing this for me.

    I re-tested it with Genesis and Twenty Seventeen theme on latest WordPress but faced the almost same problem. Tried Twenty Nineteen theme too. The svg outputs in frontend but goes hidden in Block editor.

    I am using svg from thenounproject dot com /creativestall/collection/web-hosting-doodle-icons/ with plugin Safe SVG to upload svg in WordPress.

    Here is a sample code with 3 column block. Please let me know if you need more information about it.

    I am using laravel Valet on localhost. WordPress 5.2.2

    <!-- wp:grids/section {"blockId":"2897e538-1d19-4d0c-9a07-8cfdb87a1a0a","grid":"1","columns":3,"rows":1} -->
    <!-- wp:grids/area {"blockId":"00b2f509-b5be-4e8c-8c30-a044d0d12f67","column":{"start":1,"end":1},"row":{"start":1,"end":1}} -->
    <!-- wp:image {"id":28,"align":"center","width":146,"height":149} -->
    <div class="wp-block-image"><figure class="aligncenter is-resized"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_global-server_1769248.svg" alt="" class="wp-image-28" width="146" height="149"/></figure></div>
    <!-- /wp:image -->
    
    <!-- wp:image {"id":47,"align":"center"} -->
    <div class="wp-block-image"><figure class="aligncenter"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_Globe-Arrow_1763048.svg" alt="" class="wp-image-47"/></figure></div>
    <!-- /wp:image -->
    <!-- /wp:grids/area -->
    
    <!-- wp:grids/area {"blockId":"0ffe7e29-f6a1-4300-8442-283f38e9976a","column":{"start":2,"end":2},"row":{"start":1,"end":1}} -->
    <!-- wp:image {"id":31,"align":"center"} -->
    <div class="wp-block-image"><figure class="aligncenter"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_Web-Antivirus_1770127.svg" alt="" class="wp-image-31"/></figure></div>
    <!-- /wp:image -->
    
    <!-- wp:image {"id":34,"align":"center"} -->
    <div class="wp-block-image"><figure class="aligncenter"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_Web-Antivirus_1770127-1.svg" alt="" class="wp-image-34"/></figure></div>
    <!-- /wp:image -->
    
    <!-- wp:image {"id":38} -->
    <figure class="wp-block-image"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_Shopping-Cart_1763189.svg" alt="" class="wp-image-38"/></figure>
    <!-- /wp:image -->
    <!-- /wp:grids/area -->
    
    <!-- wp:grids/area {"blockId":"7676b97f-1798-41be-be5b-82c53c4b03de","column":{"start":3,"end":3},"row":{"start":1,"end":1}} -->
    <!-- wp:image {"id":32,"align":"center"} -->
    <div class="wp-block-image"><figure class="aligncenter"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_e-commerce-website_1769787.svg" alt="" class="wp-image-32"/></figure></div>
    <!-- /wp:image -->
    
    <!-- wp:image {"id":39,"align":"center"} -->
    <div class="wp-block-image"><figure class="aligncenter"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_Landing-Pages_1763042.svg" alt="" class="wp-image-39"/></figure></div>
    <!-- /wp:image -->
    
    <!-- wp:image {"id":35,"align":"center"} -->
    <div class="wp-block-image"><figure class="aligncenter"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_Cloud-Backup_1770145.svg" alt="" class="wp-image-35"/></figure></div>
    <!-- /wp:image -->
    
    <!-- wp:image {"id":41,"align":"center"} -->
    <div class="wp-block-image"><figure class="aligncenter"><img src="https://genesis-update.test/wp-content/uploads/2019/08/noun_web-security_1762307.svg" alt="" class="wp-image-41"/></figure></div>
    <!-- /wp:image -->
    <!-- /wp:grids/area -->
    <!-- /wp:grids/section -->
    Thread Starter aryanrajseo

    (@aryanrajseo)

    Thank you.

    I really appreciate your help and giving me the time to solve this. I hope you keep it updated as i will regularly use it now.

    This will surely save me some free time. ??

    Thanks.

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi, I am really sorry.

    You are correct. It is working now. Thank you so much.

    Thread Starter aryanrajseo

    (@aryanrajseo)

    No, It output text but not classes. It uses [icon] shortcode to wrap the $content.

    <div class="widget_text widget-wrap"><span
            class="widgetsubtitle widget-subtitle subtitle-before-outside subtitle-before subtitle-outside">my icon <icon>
                subtitle</icon></span>
        <h3 class="widgettitle widget-title">my icon <i class="fa fa-title"></i></h3>
        <div class="textwidget custom-html-widget"></div>
    </div>
    • This reply was modified 5 years, 3 months ago by aryanrajseo.
    Thread Starter aryanrajseo

    (@aryanrajseo)

    add_shortcode( 'icon', 'shortcode_fa' );
    function shortcode_fa( $atts = [], $content = null) {
    return '<i class="fa fa-'. $content . '"></i>';
    }
    <section id="custom_html-6" class="widget_text widget widget_custom_html">
        <div class="widget_text widget-wrap"><span
                class="widgetsubtitle widget-subtitle subtitle-before-outside subtitle-before subtitle-outside">my icon
                <icon>apple</icon></span>
            <h3 class="widgettitle widget-title">my icon <i class="fa fa-apple"></i></h3>
            <div class="textwidget custom-html-widget">Content:</div>
        </div>
    </section>
    Thread Starter aryanrajseo

    (@aryanrajseo)

    I already tried that. It not working. The spacing is causing problem in class name.
    here is the result.
    <span class="&quot;dashicons" dashicons-wordpress&quot;=""> </span>

    I think the best way is to use shortcode. I enabled support for shortcode in widget title.

    add_filter('the_title', 'do_shortcode');
    add_filter('widget_title', 'do_shortcode');

    but this code

    add_filter('the_subtitle', 'do_shortcode');
    add_filter('widget_subtitle', 'do_shortcode');

    outputs the shortcode name only. It works with default widget title.

    I will surely write a review. ??

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi,

    Thank you for such a quick reply. I already thought the same but the spacing in class not work.

    // Allow HTML tags in Widget title 
    function html_widget_title( $var) {
    	$var = (str_replace( '[', '<', $var ));
    	$var = (str_replace( ']', '>', $var ));
    	$var = (str_replace( '|', ' ', $var ));
    	return $var ;
    	
    }
    add_filter( 'widget_subtitle', 'html_widget_title' );

    with code
    [span class=dashicons|dashicons-wordpress] [/span]

    output
    <span class="dashicons" dashicons-wordpress=""> </span>

    Do you think if there is any alternative way?

    Thank you.

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Hi,

    I tried to deactivate the plugin but the error was still showing so i tried to deactivate other plugins and error was gone after deactivating Safe SVG.

    I re-activated all the plugins including CAS and save svg and no error are shown so i don’t know whom should i contact.

    It is fixed now.

    Thanks.

    Thread Starter aryanrajseo

    (@aryanrajseo)

    Also noticed that stylesheet css/formidableforms.css is present on non-contact form pages.

    It should to be conditionally enqueued when formidableforms is present or not.

Viewing 15 replies - 31 through 45 (of 76 total)