WordPress.org

Ready to get started?Download WordPress

Forums

How do I edit a php doc to make an element a link? (4 posts)

  1. TVHCare
    Member
    Posted 11 months ago #

    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.]

  2. kmessinger
    Volunteer Moderator
    Posted 11 months ago #

    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.

  3. TVHCare
    Member
    Posted 11 months ago #

    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.

  4. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

Reply

You must log in to post.

About this Topic