Forum Replies Created

Viewing 15 replies - 16 through 30 (of 41 total)
  • narolainfotech

    (@narolainfotech)

    Hello,

    1. Widgets in Blocksy:
      • Go to your WordPress dashboard.
      • Navigate to “Appearance” and click on “Customize.”
    2. Widget Areas:
      • Look for the “Widget Areas” or “Widgets” section in the Blocksy customization settings. This might vary slightly depending on your theme version.
    3. Header, Footer, and Sidebar Widget Areas:
      • Blocksy typically allows you to add widgets to specific areas like the header, footer, and sidebar. Explore the options for each of these areas to add widgets globally.
    4. Layout Options:
      • In some cases, you might find global layout options in the customization settings. Check if there’s an option to add widgets to all pages or specific page templates.
    5. Front Page Specifics:
      • If you are having trouble adding widgets specifically to the front page, ensure that the front page is set up as a widgetized page in Blocksy. Some themes have a dedicated section for the front page where you can customize widgets.
    6. Widgetized Pages:
      • In Blocksy, some pages may be “widgetized” differently. For instance, the front page might have a different widget setup compared to other pages. Check if there’s a specific option for customizing widgets on the front page.
    7. Child Theme or Additional Plugins:
      • If the theme options are limited, consider using a child theme and customizing the template files to add widget areas where needed. Alternatively, you can use plugins that allow you to insert widgets using shortcodes or block elements.

    Hope you find your answers. Thank you

    Hello,
    I appreciate your question. well here is count down plugin’s link you can try them.
    1. https://www.ads-software.com/plugins/widget-countdown/

    2. https://www.ads-software.com/plugins/countdown-timer-ultimate/
    Hope you find your answer. Thank you

    Hello,
    I appreciate your question, well

    Here’s an example of how you can achieve this by using the is_admin() function:

    function custom_user_register($user_id) {
       
        if (is_admin()) {
           echo "hello";
        } else {
            $role_to_assign = 'your_frontend_role';
            wp_update_user(array('ID' => $user_id, 'role' => $role_to_assign));
        }
    }
    
    add_action('user_register', 'custom_user_register');
    

    Adjust the code according to your specific needs and the roles you want to assign. you can set value instead of your_frontend_role in above code like admin, editor any role you want, just add there.
    Hope you find your answer. Thank you

    Hello,

    Redirecting users based on their browser language is indeed possible with WordPress multisite, and you’re on the right track by using the .htaccess file. However, there are a few considerations to keep in mind.

    Since WordPress multisite dynamically generates URLs for each subsite (e.g., /en/ and /fr/), trying to set up language-based redirects directly in .htaccess might be a bit tricky. Here’s an alternative approach using PHP and WordPress functions to achieve language-based redirection:

    1. Open your theme’s functions.php file for both the English and French child themes.
    2. Add the following code to detect the browser language and redirect accordingly:

    For the English version (functions.php in the /en/ theme):

    function language_redirect() {
        if ( !is_user_logged_in() && !is_admin() ) {
            $user_lang = substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2 );
            if ( $user_lang == 'fr' ) {
                wp_redirect( home_url( '/fr/' ) );
                exit();
            }
        }
    }
    add_action( 'template_redirect', 'language_redirect' );
    

    For the French version (functions.php in the /fr/ theme):

    function language_redirect() {
        if ( !is_user_logged_in() && !is_admin() ) {
            $user_lang = substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2 );
            if ( $user_lang == 'en' ) {
                wp_redirect( home_url( '/en/' ) );
                exit();
            }
        }
    }
    add_action( 'template_redirect', 'language_redirect' );
    

    This code checks the browser’s language preference and redirects users to the appropriate language subfolder.

    Remember to customize the code based on your specific needs and test thoroughly. Also, note that this approach assumes that the browser language setting is reliable, which may not always be the case. Users can have multiple languages set in their browser preferences, and the order of preference may vary.

    Additionally, always make a backup before modifying theme files and test thoroughly to ensure the desired behavior.
    Thank you.

    Hello,
    I understand your concern, well here is the step which you need to follow to remove search box.
    1. Go to admin dashboard -> Appearance-> widget like given screen shot – https://prnt.sc/zrg-JyuCdQk5
    2. In widget area you can find search form – > https://prnt.sc/8exJTkLo9TV5
    You can delete search widget.
    Hope you find your answers. Thank you

    Hello,
    I appreciate your question, well here is a plugin which have zoom effect, you can simply download it from below link.
    Plugin link – https://www.ads-software.com/plugins/ultimate-image-gallery/
    Hope you find your answer. Thank you.

    Hello, Now I understand what you exactly you wants. To remove additional CC form

    .woocommerce-additional-fields {
        display: none;
    }

    Just do simple css and you’re all set. Thank you for your response.

    Hello,
    I understand your concern.
    To remove malware I suggest plugins which helps you to identify that file which affected due to malware and from that plugin you can delete those files.
    Plugin link- https://www.ads-software.com/plugins/wordfence/
    you can also check doc of that plugin from above link.
    Thank you.

    If the variable slug is dynamically generated and changes each time a user chooses a link, it becomes more challenging to identify and remove it. In such cases, you might need to resort to regular expressions to dynamically match and replace the variable slug.

    Here’s a more generic example using the post_type_link filter and regular expressions to identify and remove the variable slug:

    function remove_variable_slug($permalink, $post, $leavename) {
        // Define the pattern to match the variable slug
        $pattern = '/\/page1\/([^\/]+)/';
    
        // Use preg_replace to remove the variable slug
        $permalink = preg_replace($pattern, '/page1/', $permalink);
    
        return $permalink;
    }
    
    add_filter('post_type_link', 'remove_variable_slug', 10, 3);

    In this example, the regular expression \/page1\/([^\/]+) is used to match the variable slug after /page1/. The ([^\/]+) part captures one or more characters that are not a forward slash. The preg_replace function is then used to replace the matched portion with /page1/.

    Keep in mind that regular expressions can be powerful but also need to be carefully crafted to match the specific patterns you’re dealing with. Adjust the regular expression according to the actual structure and patterns of your variable slugs.

    Thank you .

    Hello,
    I appreciate your question, and understand your concern.
    add this simple css and you’re all set.

    .site-footer > .site-info {
        border-top: none !important;
    }
    

    hope you find your solution. Thank you.

    Hello,
    I appreciate your question, well here is code for that

    function custom_post_type_permalink($permalink, $post, $leavename) {
        // Modify the permalink as needed
        $permalink = str_replace('your_variable_slug/', '', $permalink);
    
        return $permalink;
    }
    
    add_filter('post_type_link', 'custom_post_type_permalink', 10, 3);

    function custom_post_type_permalink($permalink, $post, $leavename) { // Modify the permalink as needed $permalink = str_replace(‘your_variable_slug/’, ”, $permalink); return $permalink; } add_filter(‘post_type_link’, ‘custom_post_type_permalink’, 10, 3);

    Hello,
    I appreciate your question and understand your concern. Well here is some steps
    To achieve the desired URL structure in WordPress for your custom post type (CPT) and categories, you can use a combination of custom rewrite rules and filters. Below is an example of how you can achieve this:

    1. Register Custom Post Type (CPT):

    Make sure you have registered your custom post type with the appropriate arguments, including ‘rewrite’. Here’s an example:

    function custom_theme_register_lessons_cpt() {
        $labels = array(
            // Add your labels here
        );
    
        $args = array(
            'labels'      => $labels,
            'public'      => true,
            'has_archive' => true,
            'rewrite'     => array( 'slug' => 'lesson', 'with_front' => false ),
            // Add other arguments as needed
        );
    
        register_post_type( 'lessons', $args );
    }
    add_action( 'init', 'custom_theme_register_lessons_cpt' );
    

    Make sure to adjust the arguments according to your requirements.

    1. Remove ‘lesson’ from Custom Post Type URL:You can use the post_type_link filter to modify the permalink for your custom post type. Here’s an example:
    function custom_theme_lessons_permalink( $post_link, $post ) {
        if ( is_object( $post ) && $post->post_type == 'lessons' ) {
            $post_link = str_replace( '/lesson/', '/', $post_link );
        }
        return $post_link;
    }
    add_filter( 'post_type_link', 'custom_theme_lessons_permalink', 10, 2 );
    
    function custom_theme_lessons_permalink( $post_link, $post ) {
        if ( is_object( $post ) && $post->post_type == 'lessons' ) {
            $post_link = str_replace( '/lesson/', '/', $post_link );
        }
        return $post_link;
    }
    add_filter( 'post_type_link', 'custom_theme_lessons_permalink', 10, 2 );
    

    3. Custom Category URL Structure:

    For customizing the category URL structure, you can use the category_link filter. Here’s an example:

    function custom_theme_category_permalink( $termlink, $term, $taxonomy ) {
        if ( 'lesson-category' == $taxonomy ) {
            $termlink = str_replace( '/lesson-category/', '/', $termlink );
        }
        return $termlink;
    }
    add_filter( 'category_link', 'custom_theme_category_permalink', 10, 3 );
    
    1. Replace ‘lesson-category’ with the actual slug of your category taxonomy.

    Remember to flush the rewrite rules after adding or modifying these functions. You can do this by going to the WordPress admin dashboard, navigating to Settings > Permalinks, and clicking the “Save Changes” button.

    Hope you find your answer thank you.

    Hello,
    I understand your concern, but here is some plugins link for forms-
    1. https://www.ads-software.com/plugins/contact-form-7/
    2. https://www.ads-software.com/plugins/ninja-forms/
    Hope you find your answers. Thank you

    Hello,
    I understand your concern, but is there other way too for reset password directly via database. Here I give you details for that just follow below steps.

    1. Open your database of particular website.
    2. You can find wp_users table like this- https://prnt.sc/dlDapN6vEmgU
    3. Open wp_users table, you can see users list there from which click on edit row like this – https://nimb.ws/hr7Esf
    4. Now select MD5 function in password column and add new password like given video – https://nimb.ws/ReUJ2P
    5. Now click on go button. You all set then
      This is the very easy way to reset password.

    Hope you find your answers Thank you.

    Hello,
    I mean is my solutions is helpful to you or not?

Viewing 15 replies - 16 through 30 (of 41 total)