Support » Fixing WordPress » How do I edit a php doc to make an element a link?

  • I have a theme (healthpress) that allows for an element just above the footer that pulls in our latest tweet. It is not a feed, that is somewhere else on the page.

    Currently, If there are links in our latest tweet, the user can click on the element and it will go to that link that was in the tweet, and not our twitter homepage.

    I queried theme support and they told me to edit the twitter.php file, but I don’t know where to insert, or really what to insert to make the entire element link to our homepage? Do I use the <a href= approach, and what do I put in place of text?

    here’s the code that need to be modified.


                                    $show_twitter = get_option('theme_show_twitter');
                                    if($show_twitter == 'true')
    									<!-- twitter update list -->
    									<ul id="twitter_update_list">
    <li><?php _e("No Tweet Loaded !", 'framework'); ?></li>
    									<script src="" type="text/javascript"></script>
    <script type="text/javascript">
    										getTwitters('twitter_update_list', {
    											  id: '<?php echo get_option('theme_twitter_username'); ?>',
    											  count: 1,
    											  enableLinks: true,
    											  ignoreReplies: true,
    											  clearContents: true,
    											  template: '%text%'

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I edit a php doc to make an element a link?’ is closed to new replies.