This topic has 3 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #97363
     fersamp
    Participant

    Hi,

    is it possible to insert a shortcode in Theme Options->Header Option-> Main menu info?

     

    Thank you

    #97456
     sharmstr
    Moderator

    Yes

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    #97705
     fersamp
    Participant

    I mean other shortcode, not kleo, for example custom code.
    I need to show WPML selector with this code

    <?php do_action('wpml_add_language_selector'); ?>

    Is it correct this function?

    COPY CODE
    function language_selector() {
    
    	// Code
    do_action('wpml_add_language_selector'); 
    }
    add_shortcode( 'add_language_selector', 'language_selector' );
    #97749
     sharmstr
    Moderator

    Shortcodes are shortcodes. It doesnt matter what plugin/theme created it.

    I have no idea if that’s correct. According to this it is: https://wpml.org/forums/topic/language-switcher-shortcode-for-text-box/

    So, you should be able to use [add_language_selector]. I cant test since I dont have it. But you can test your shortcode in a text widget or post to see if it works there first.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

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

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?