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

  • TVHCare

    (@tvhcare)


    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.

    Thanks.

    <?php
                                    $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="http://twitterjs.googlecode.com/svn/trunk/src/twitter.min.js" 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%'
    										});
    									</script>
    									<?php
    								}
    							    ?>

    [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)
  • Moderator kmessinger

    (@kmessinger)

    I queried theme support and they told me to edit the twitter.php file

    You need to ask them again. Commercial themes are supported by the themes developers. WordPress.org cannot support commercial themes as we have no access to how they are constructed.

    TVHCare

    (@tvhcare)

    Where do i go to ask this in a codex forum then? I just want to know how to make a page element a link, in general.

    WPyogi

    (@wpyogi)

    Forum Moderator

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.