Pier

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Shortcode in sidebar.php + translations #37768
    PierPier
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: June 6, 2016

    Fair enough, my bad…
    I’ve solved it by allowing shortcodes in widgets by adding a line in functions.php

    add_filter('widget_text','do_shortcode');
    ref:
    http://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/

    in reply to: Shortcode in sidebar.php + translations #37749
    PierPier
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: June 6, 2016

    Erm, yes, I’m building it. 🙂

    in reply to: Shortcode in sidebar.php + translations #37739
    PierPier
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: June 6, 2016

    The website is
    www.alvoloitalianstreetfood.co.uk
    and the page where the issue happens is:
    http://www.alvoloitalianstreetfood.co.uk/it/contact-page/
    Basically by using the page template “Left Sidebar” for that page the “sidebar.php” page has a php script:

        <?php if ( ! dynamic_sidebar( 'sidebar-main' ) ) : ?>
    
            <aside id="archives" class="widget">
    
                <h3 class="widget-title">Opening Hours</h3>
    
                <?php echo do_shortcode('[time_table]
    
    [time_table_row title="Monday" start="10:00 am - to - 08:00pm"]

    which doesn’t allow me to add [:en] tags.

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