Jetpack Twitter Widget | Passing new args (1 post)

  1. craigglenn
    Posted 3 years ago #

    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

                                                $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,

Topic Closed

This topic has been closed to new replies.

About this Topic