Okay
  Public Ticket #1941427
Service shortcode
Closed

Comments

  • Cioka started the conversation

    Hi,

    As you can see in the attached screenshot, I have 2 questions related to the SERVICE shortcode:

    1.- How could I select the number of words to show?

    2.- How could I change the text of the "Learn more" button?

    Thanks in advance,

    INA

    Attached files:  service-shortcode.png

  •  884
    Linh replied

    Hello

    My image will show you the place to increase the number of word to display for your service list.

    wp-content hemeshealsoulloopcaregiverstyle-grid-04.php

    http://prntscr.com/n0sfu7

    Also this article will help you translate that Learn More button:

    https://thememove.ticksy.com/article/13941/

    Thanks

  • Cioka replied

    Hi Linh,

    Thank you very much for your answers. 

    See you,

    INA

  •  884
    Linh replied

    You are welcome.

  • Cioka replied

    Hi Lihn,

    Related to the translation issue, I wonder if the word HOME in the breadcrumbs area, could be translated with Loco Translate too cause I can not find it with the plugin.

    Is there any other way?

    Thanks

  •  884
    Linh replied

    Hello

    You can find the Home text in Insight core lugin translate section.

    Thanks

  • Cioka replied

    Hi Linh,

    You mean that I must translate the Insight core plugin with Loco Translate too, in order to find this word?

    Please send me a screenshot for a better interpretation.

    Thanks,

    INA

  • Cioka replied

    Hi again,

    I tried it and I got it. However, I don´t know how could I translate "Services" word.

    Could you help me?

    Thanks in advance

    Attached files:  translate-services.png

  •  884
  • Cioka replied

    Hi Linh,

    Yes thanks for the screenshots, I manage to translate "Home" word but now I can not do the same with "Service" word, also in the breadcrumbs area as you can see in the screenshot.

    Any idea?

    INA

    Attached files:  translate-services_887.png

  •  884
    Linh replied

    Hello

    You can use Loco translate plugin to change Service word as normal.

    https://thememove.ticksy.com/article/13941/

    Thanks

  • Cioka replied

    Hi Linh,

    The problem is that there is no results for "services" in the THEME search of Loco translation and if I check it in the Insight core PLUGIN search, I have translated some of the results found but there is no change in the Breadcrumbs.

    Could you spicify me the word I should translate please?

    Thanks again,

    INA

    Attached files:  services.jpg

  •  884
    Linh replied

    Hello

    You should translate Service text in theme, not plugin. 

    Thanks

  • Cioka replied

    Hi Linh,

    The problem is that there is no result for "Services" in the THEME. Could you send me a screenshot where you show the word to translate in Loco Translate.

    * Take into consideration that it is "Services", in plural, and not "Service", in singular, as you wrote in your last reply.

    Thanks again,

    INA

  •  884
    Linh replied

    Hello

    Oh sorry the Service text still in Insight Core plugin for your translate.

    http://prntscr.com/n3eq7a

    http://prntscr.com/n3eqcs

    Thanks

  • Cioka replied

    Hi Linh,

    I am not sure I got you right.

    I have searched into Insight Core plugin with Loco Translate but I could not find the right "Services" word to translate as you can see in the attached image.

    What should I do?

    INA

    Attached files:  no-right-result.png

  •  884
    Linh replied

    Hello

    You can add this code to functions.php file of your theme to change it:

    add_filter('insight_core_register_post_type_service', 'healsoul_child_register_post_type_service');
    function healsoul_child_register_post_type_service($info) {
        $info['labels'] = array(
            'name'                  => esc_html__( 'Services', 'healsoul' ),
            'singular_name'         => esc_html__( 'Service', 'healsoul' ),
            'all_items'             => esc_html__( 'All Courses', 'healsoul' ),
            'menu_name'             => _x( 'Courses', 'Admin menu name', 'healsoul' ),
            'add_new'               => esc_html__( 'Add New', 'healsoul' ),
            'add_new_item'          => esc_html__( 'Add new course', 'healsoul' ),
            'edit'                  => esc_html__( 'Edit', 'healsoul' ),
            'edit_item'             => esc_html__( 'Edit course', 'healsoul' ),
            'new_item'              => esc_html__( 'New course', 'healsoul' ),
            'view'                  => esc_html__( 'View course', 'healsoul' ),
            'view_item'             => esc_html__( 'View course', 'healsoul' ),
            'search_items'          => esc_html__( 'Search courses', 'healsoul' ),
            'not_found'             => esc_html__( 'No courses found', 'healsoul' ),
            'not_found_in_trash'    => esc_html__( 'No courses found in trash', 'healsoul' ),
            'parent'                => esc_html__( 'Parent course', 'healsoul' ),
            'featured_image'        => esc_html__( 'Course image', 'healsoul' ),
            'set_featured_image'    => esc_html__( 'Set course image', 'healsoul' ),
            'remove_featured_image' => esc_html__( 'Remove course image', 'healsoul' ),
            'use_featured_image'    => esc_html__( 'Use as course image', 'healsoul' ),
            'uploaded_to_this_item' => esc_html__( 'Uploaded to this course', 'healsoul' ),
            'filter_items_list'     => esc_html__( 'Filter courses', 'healsoul' ),
            'items_list_navigation' => esc_html__( 'Courses navigation', 'healsoul' ),
            'items_list'            => esc_html__( 'Course list', 'healsoul' ),
        );
        return $info;
    }
    

    Just replace the service name on the code to the name you want.

    Note: Save the permalink again to apply it.

    Thanks

  • Cioka replied

    Hi Lihn,

    Thank you very much it worked well but in case I would need to translate it to different languages, it would be a problem, wouldn't it?

    INA

  •  884
    Linh replied

    Hello

    It is custom post type so it can not be translated. You can only change it to other text but it will apply for all languages.

    Thank for your understanding.