Support » Plugins and Hacks » Jetpack Twitter Widget | Passing new args

  • I am using the_widget to display the twitter widget in a page. I can call the widget and pass new args like title but I am having trouble changing from the default h2 before_title arg to h5

    <?php
                                                $args = array(
                                                    'account' => 'woodleighventrs',
                                                    'title' => 'Recent Tweets',
                                                    'show' => '5',
                                                    'before_widget' => '',
                                                    'after_widget' => '',
                                                    'before_title' => '<h5>',
                                                    'after_title' => '</h5>'
                                                    )
                                            ?>
                                            <p><?php the_widget('Jetpack_Widget_Twitter', $args) ; ?></p>

    For some reason the title still displays as h2 and not h5.

    Thanks in advance for your reply,
    Craig

  • The topic ‘Jetpack Twitter Widget | Passing new args’ is closed to new replies.