Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1420001

    rajkapoor
    Participant

    I want to put a ticker on my website http://www.indiabaja.com
    I used this plug in : Ditty News Ticker
    but it’s not showing up on the website.
    Also, I am trying to use the social media plug in : Facebook By WebLizar
    This is also not showing up on the website.

    Log in credentials mentioned in a reply to this post.

    #1420002

    rajkapoor
    Participant
    This reply has been marked as private.
    #1420045

    Thai
    Moderator

    Hi There,

    It seems to work fine:

    https://indiabaja.com/test/

    Could you please double check?

    Thanks.

    #1421257

    rajkapoor
    Participant

    I want this to come on top of the webpage not as a separate page. Please guide.

    #1421295

    Lely
    Moderator

    Hi There,

    You may add the shortcode on Appearance > Customize > Header > Topbar: Set to ON > Topbar Content.

    Then for topbar to process shortcode, please add this line on your child theme’s functions.php file:
    add_filter('theme_mod_x_topbar_content', 'do_shortcode');

    Hope this helps.

    #1421306

    rajkapoor
    Participant

    And what about the Facebook plugin ?

    #1421307

    Lely
    Moderator

    Hi There,

    Please refer to the plugin documentation on how to implement. I did check here:https://wordpress.org/plugins/facebook-by-weblizar/ and we can use the shortcode [FBW]. You may add it on where you want it to implement.

    #1422639

    rajkapoor
    Participant

    Added that line in the child theme’s functions.php file but still nothing is happening. Please check the screenshot
    Added this line:
    add_filter(‘theme_mod_x_topbar_content’, ‘do_shortcode’);
    nothing happened, then added this line:
    add_filter(‘theme_mod_x_topbar_content’, ‘[ditty_news_ticker id=”588″]’);

    Also, the facebook plugin is not working. Please check. Thanks

    #1422998

    Lely
    Moderator

    Hi There,

    We should only add the following code:
    add_filter('theme_mod_x_topbar_content', 'do_shortcode');

    That codes means that any shortcode you add on Appearance > Customize > Header > Topbar: > Topbar Content Text Field will be process. Add [ditty_news_ticker id="588"] on Topbar Content Text field. I can see you have text there already, so where exactly now you want it to add. When you say top does that mean on top of the content?

    Where did you add the facebook plugin shortcode?

    #1423832

    rajkapoor
    Participant

    I have put the required short codes in their place but still the ticker is not working. Pl check the screenshots.
    I haven’t put the facebook plugin shortcode anywhere. Please tell me where to put it.

    #1424003

    rajkapoor
    Participant

    I got the ticker working. Please tell me how to activate the facebook plugin ??

    #1424317

    Christian
    Moderator

    Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, You might want to contact our trusted partners who caters X setup and customization needs. Please see https://community.theme.co/custom-development/. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.

    #1429250

    ngiderin
    Participant
    This reply has been marked as private.
    #1429282

    Rad
    Moderator

    Hi there,

    Please try this,

    add_filter('x_option_x_topbar_content', 'pre_do_shortcode');
    
    function pre_do_shortcode ( $content ) {
    
    return is_admin() ? $content : do_shortcode( $content );
    
    }

    instead of this

    add_filter('theme_mod_x_topbar_content', 'do_shortcode');

    Hope this helps.