WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack Twitter Widget | Passing new args (1 post)

  1. craigglenn
    Member
    Posted 1 year 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

    <?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

Topic Closed

This topic has been closed to new replies.

About this Topic