Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter impsubi

    (@impsubi)

    Hi Nikhil,

    Thanks a lot for your answer, I’ve been giving a try about your troubleshooting and it’s working perfectly fine! =)

    This is what I have actually:

    function your_prefix_default_strings_callback( $strings ) {

    $strings[‘string-search-nothing-found-message’] = __( ‘my custom search page message’, ‘astra’ );
    $strings[‘string-search-input-placeholder’] = __( ‘Start Typing…’, ‘astra’ );

    return $strings;
    }
    add_filter( ‘astra_default_strings’, ‘your_prefix_default_strings_callback’, 10 );

    The line regarding nothing found message was changed successfully, however I’m still unable to change the message into the placeholder from the search input box, even though I had added the line inside the code.

    I’m sorry to bother you about that, but would you mind to look further into it.

    Thanks again!

    Thread Starter impsubi

    (@impsubi)

    Hi Nikhil!

    Firstly, thanks for your answer. I’ve been trying to add the code into my functions.php file from my child theme. However, I didn’t manage to change any of the default strings, unfortunately.

    This is what I’ve added insisde the functions.php:

    <?php

    function default_strings_callback( $strings ) {
    // Search nothing found string
    $strings[‘string-search-nothing-found’] = __( ‘ enc.’, ‘astra’ );
    // Search input box placeholder
    $strings[‘string-search-input-placeholder’] = __( ‘bu …’, ‘astra’ );
    return $strings;
    }
    add_filter( ‘astra_default_strings’, ‘default_strings_callback’, 10 );

    /**
    * Astra Child Theme functions and definitions
    *
    * @link https://developer.ww.wp.xz.cn/themes/basics/theme-functions/
    *
    * @package Astra Child
    * @since 1.0.0
    */

    /**
    * Define Constants
    */
    define( ‘ASTRA_CHILD_THEME_VERSION’, ‘1.0.0’ );

    /**
    * Enqueue styles
    */
    function child_enqueue_styles() {

    wp_enqueue_style( ‘astra-child-theme-css’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘astra-theme-css’), ASTRA_CHILD_THEME_VERSION, ‘all’ );

    }

    add_action( ‘wp_enqueue_scripts’, ‘child_enqueue_styles’, 15 );

    Would you mind to give me a hand on that please?

    Thanks!

    Thread Starter impsubi

    (@impsubi)

    Hi there!

    Thanks for your answer and let me know further about my inquires. =)

    About the delay time for loading the js file, have you been thinking in adding a loading effect for each month change? this will indicate to the visitor that something is going to happen. ^^

    Have a great day!

    Thread Starter impsubi

    (@impsubi)

    I forgot to mention I’m using Total Soft Calendar.

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