Forum Replies Created

Viewing 15 replies - 16 through 30 (of 34 total)
  • Hi,

    If you mean that if you want to use the old footer and header builder in the backend, here’s a code snippet you can use:

    $modules = get_option('sydney-modules');
    $modules['hf-builder'] = false;
    update_option('sydney-modules', $modules);

    You can use the Code Snippets plugin to run this code. You only need to run it once, so you can delete it after the header/footer is updated. Here’s a detailed guide on adding code snippets: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/

    Hi @cleavon1

    I see your footer like this:

    So, I do not see a white overlay there.
    Could you please show a screenshot of the issue?

    Hi,

    1/ Center aligning the post image
    This is just a setting in your editor. Click on the image and click on center aligning icon.

    2/ Sidebar:
    If you are asking about this, this is a pro feature: https://docs.athemes.com/article/pro-sidebar-module/

    Hi,

    1. You can do that in Sydney > Customizer > Header > Main Header and then click on “Style Tab”
    2. Remove your tagline from Sydney > Customizer > Header > Main Header > Site Identity
    3. Please refer to https://docs.athemes.com/article/header-footer-builder-2/

    Regards,

    Hi,

    You need cPanel or FTP access to troubleshoot this. Try deleting the theme manually from the /wp-content/themes/ directory, downloading a fresh copy of the latest Sydney theme version, uploading it, and activating it again to see if the issue persists.”

    Additional Considerations:

    • Why it’s appropriate: The error points to a specific file in the Sydney theme (customize-options.php), and reinstalling the theme ensures you’re working with clean, unmodified files, which could resolve the issue if it’s caused by file corruption or an incomplete update.
    • Next steps if it doesn’t work: If reinstalling the theme doesn’t resolve the error, you may need to do a plugin conflict check

    Note: Before making changes, back up your site (database and files) to avoid data loss. If you’re unsure about cPanel or FTP, consult your hosting provider or a developer.

    Regards,

    Hi,

    I see many errors in your console. These JavaScript errors can stop other scripts are being from executed. The slider is loaded via JavaScript. So first you have to fix this. It comes from a plugin.

    Before anything else, can you make sure you’re using the latest version of Sydney.

    Then you can rule out plugin conflicts by installing the Health Check & Troubleshooting plugin. With the plugin activated, go to Admin Dashboard > Tools > Site Health, go to the Troubleshooting tab and click the [Enable Troubleshooting Mode] button.

    Once in Troubleshooting Mode, you can control which theme and plugins are enabled without impacting visitors to your site. Initially, a default theme is activated, and all plugins are disabled.

    At this point, activate the Sydney Pro theme and pre-installed plugins like Elementor and Sydney Toolbox. Start checking for plugin conflicts by enabling other plugins one by one. If the issue occurs only when a certain plugin is activated, then that plugin has conflict with Sydney Pro.

    Note: Troubleshooting Mode only applies to your own admin session. Your site visitors will still continue to view the website as it is.

    Regards,

    Hi Jamal,

    The issue is that the line is hardcoded in a JavaScript file, so there is no direct way to translate it or make it translatable

    Here’s a workaround.

    Copy this code and paste this at the bottom of your Appearance > Themes File Editor > functions.php

    // Add the countdown timer translation logic
    add_action( 'wp_enqueue_scripts', 'custom_countdown_timer_translation', 100 );
    function custom_countdown_timer_translation() {
    // Only enqueue on product pages
    if ( function_exists( 'is_product' ) && ! is_product() ) {
    return;
    }

    // Check if the original countdown timer script is enqueued
    if ( ! wp_script_is( 'merchant-countdown-timer', 'enqueued' ) ) {
    return;
    }

    // Localize the script with the translated "days" string using the 'rif-merchant' text domain
    wp_localize_script(
    'merchant-countdown-timer',
    'customCountdownTimer',
    array(
    'daysLabelSingular' => esc_html__( 'day', 'rif-merchant' ),
    'daysLabelPlural' => esc_html__( 'days', 'rif-merchant' ),
    )
    );

    // Add inline JavaScript to watch the DOM element
    $inline_script = "
    document.addEventListener('DOMContentLoaded', function() {

    // Function to update the countdown timer display
    function updateCountdownDisplay() {
    var timerContainer = document.getElementById('merchant-countdown-timer');
    if (timerContainer && timerContainer.innerHTML) {
    var timerSpan = timerContainer.querySelector('span');
    if (timerSpan) {
    var matches = timerSpan.innerHTML.match(/(\d+)\s+<span>days\s*<\/span>\s+(\d+):(\d+):(\d+)/i);
    if (matches) {
    var days = parseInt(matches[1], 10);
    var hours = matches[2];
    var minutes = matches[3];
    var seconds = matches[4];
    var daysLabel = days === 1 ? customCountdownTimer.daysLabelSingular : customCountdownTimer.daysLabelPlural;
    timerSpan.innerHTML = ''.concat(days, ' <span>').concat(daysLabel, '</span> ').concat(hours, ':').concat(minutes, ':').concat(seconds);
    }
    }
    }
    }

    // Use a MutationObserver to watch for changes to the timer element
    var observer = new MutationObserver(function(mutations) {
    mutations.forEach(function(mutation) {
    if (mutation.type === 'childList' || mutation.type === 'characterData') {
    updateCountdownDisplay();
    }
    });
    });

    // Start observing the timer element
    var timerContainer = document.getElementById('merchant-countdown-timer');
    if (timerContainer) {
    observer.observe(timerContainer, { childList: true, characterData: true, subtree: true });
    updateCountdownDisplay(); // Initial update
    } else {
    // Retry finding the element if it's not available yet
    var attempts = 0;
    var maxAttempts = 10;
    var interval = setInterval(function() {
    attempts++;
    timerContainer = document.getElementById('merchant-countdown-timer');
    if (timerContainer) {
    observer.observe(timerContainer, { childList: true, characterData: true, subtree: true });
    updateCountdownDisplay();
    clearInterval(interval);
    } else if (attempts >= maxAttempts) {
    clearInterval(interval);
    }
    }, 500);
    }
    });
    ";

    // Add the inline script
    wp_add_inline_script( 'merchant-countdown-timer', $inline_script );
    }

    // Use gettext and ngettext filters to modify the translated strings (optional, can be removed if using Loco Translate)
    add_filter( 'gettext', 'rif_merchant_change_countdown_text', 20, 3 );
    add_filter( 'ngettext', 'rif_merchant_change_countdown_text', 20, 3 );

    function rif_merchant_change_countdown_text( $translated, $text, $domain ) {
    if ( 'rif-merchant' === $domain ) {
    switch ( $text ) {
    case 'day':
    $translated = 'jour'; // Example translation to French
    break;
    case 'days':
    $translated = 'jours'; // Example translation to French
    break;
    }
    }
    return $translated;
    }

    Change jour and jours to the words you want (day, days)
    Then click on the blue “Update File” button:

    Now you should see the word you replaced like this in your countdown timer:



    • This reply was modified 1 year, 3 months ago by A. M. Riffaz.

    I also experiencing the same..
    Can anyone instruct us please??

    Thread Starter A. M. Riffaz

    (@riffaz)

    How quick your response.. thanks a lot..

    I mean both (taxonomy1 and taxonomy2) taxonmies now takes template2, even I select temp1 for taxonomy1

    Thread Starter A. M. Riffaz

    (@riffaz)

    Perfect. Works like a charm. Thanks a lot Jesse.
    Really you saved me..

    Thread Starter A. M. Riffaz

    (@riffaz)

    That’s fine.
    Already I am getting that custom type post title by the same code you provide above.

    Now I want to get the author name of that custom type post.
    How can I get the author display name of the custom type post?

    Thread Starter A. M. Riffaz

    (@riffaz)

    Hey Jesse.. thanks a lot for your effort. really appreciate.
    But for this works:

    echo wsl_get_user_custom_avatar ($post->post_author);

    It gives me social profile avatar.

    But I am unable get the user name of this role for a custom post type.

    $author_id=$post->post_author;
    echo the_author_meta('display_name', $author_id);

    This gives me administrator name. Not the name of the custom post.
    Could you help me on this please?

    11 months ago.. wooow….
    Did you manage to get the feature damusix?

    Thread Starter A. M. Riffaz

    (@riffaz)

    Hi Dallas,

    Thanks for that. That’s good news.
    Do not forget to notify when you release version 2.0.

    Thread Starter A. M. Riffaz

    (@riffaz)

    Hi Jesse,
    That helped. Thanks a lot.

    But how to show their social profile pictures on contributors page?
    I mean I want to show all the Travellers in a page.

    so put this code on contributors.php

    $args['role'] = 'traveller';
    $users = get_users($args);
    foreach( $users as $user ) {
    	echo $user->user_nicename;
            "HERE I WANT TO CALL TRAVELLER SOCIAL PROFILE IMAGE"
    	echo '<br />';
    }

    how can I code the line ‘ HERE I WANT TO CALL TRAVELLER SOCIAL PROFILE IMAGE ‘ to show a traveller image next to his name.
    It will be a list of that role users with their name and social profile images.

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