Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Where is the code, how to change it? WordPress

I am a newbie to Wordpress.

Plase go to this site: www.baystatetaxi.com
If I go to wp-admin, I see the following code for this Home Page:

<img class="aligncenter size-full wp-image-10" title="bay_state_name_number" src="http://baystatetaxi.com/wp-content/uploads/2010/09/bay_state_name_number.png" alt="" width="550" height="200" />

<img class="aligncenter size-full wp-image-20" title="babystate1964" src="http://baystatetaxi.com/wp-content/uploads/2010/09/babystate1964.jpg" alt="" width="500" height="125" />
<h3 style="text-align: center;"><span style="color: #003366;">*Vans Available Upon Request
*Cab Arrival Call Upon Request
*Highest Yelp Rating of Major Boston Cab Companies
*All Major Credit Cards Accepted</span></h3>
<span style="color: #003366;">
</span>
<p style="text-align: center;"><a href="http://baystatetaxi.com/accounts/"><img class="size-full wp-image-26 aligncenter" title="credit_cards" src="http://baystatetaxi.com/wp-content/uploads/2010/09/credit_cards.jpg" alt="" width="238" height="35" /></a></p><


This code represents the majority of the page. But, there are three areas on the Home Page not represented by this code. 1) The RSS feed button at the top, 2) The "Search" window and the "Testimonials" on the right hand side, and 3) The "Copyright" and the Programmer information on the bottom left.

These are all on the Homepage. Why are they not represented by the Homepage code?

Where is the code and what tool do I run to modify theses areas? I have full FTP access as well as access to the hosting site. I am very technical, but I don't know Wordpress.

Answers (2)

2012-09-11

Asad Iqbal answers:

Please take a look to header.php, sidebar.php and footer.php. Also if you can give me your template file list then I can be more specific.


Asad Iqbal comments:

Please take a look to hader.php, sidebar.php and footer.php. Also if you can give me your template file list then I can be more specific.


lstevens comments:

There are three directories under wp-content/themes (proslate, twentyeleven, twentyten). How do I know which one has the correct file list? (I assume that is what you mean).


Asad Iqbal comments:

It is proslate, check that directory.


lstevens comments:

Directory contains:
[Parent Directory]

img -- 10/20/2010 12:40:33 pm Directory

breadcrumbs.php 1.3 KB 10/20/2010 12:40:13 pm Script

comments.php 3.42 KB 10/20/2010 12:40:14 pm Script

footer.php 30 B 10/20/2010 12:40:14 pm Script

functions.php 3.66 KB 10/20/2010 12:40:15 pm Script

header.php 2.2 KB 10/20/2010 12:40:16 pm Script

index.php 2.1 KB 10/20/2010 12:40:37 pm Script

page.php 1.67 KB 10/20/2010 12:40:38 pm Script

README.txt 519 B 10/20/2010 12:40:40 pm Text File

screenshot.png 31.9 KB 10/20/2010 12:40:42 pm Image

sidebar.php 3.77 KB 10/20/2010 12:40:43 pm Script

single.php 2.2 KB 10/20/2010 12:40:43 pm Script

splashimage.jpg 27.8 KB 10/20/2010 12:40:45 pm Image

style.css

Header Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">

<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />


<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_enqueue_script("jquery"); ?>
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>

<!-- Page menu code -->
<script type='text/javascript'>
jQuery(document).ready(function() {
jQuery("#dropmenu ul").css({display: "none"}); // Opera Fix
jQuery("#dropmenu li").hover(function(){
jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(268);
},function(){
jQuery(this).find('ul:first').css({visibility: "hidden"});
});
});
</script>
<!-- End Page mneu Code -->
</head>
<body>


<div id="main_center">
<div id="left_col">

<!-- Header -->
<div id="left_header">
<div id="rsslink"><a href="<?php bloginfo('rss2_url'); ?>"></a></div>
<div id="blog_title">
<h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
<h2><?php bloginfo('description'); ?></h2>
</div>

<div id="splashimage"></div>

</div>

<div id="main_topmenu">
<ul id="dropmenu">
<li class="page_item"></li>
<?php wp_list_pages('sort_column=menu_order&title_li='); ?>
</ul>
</div><!-- End main_topmenu -->


Sidebar Code:

<div id="sidebar_search">
<form id="searchform" method="get" action="<?php bloginfo('home'); ?>">
<div>
<input type="text" name="s" id="s" />
<input type="image" src="<?php bloginfo('template_directory'); ?>/img/search_btn.gif" id="searchsubmit" value="Search" />
</div>
</form>
</div>











<ul>
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
<li>
<?php /* get_search_form(); */?>
</li>



<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<li id="display_info">

<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <strong><?php single_cat_title(''); ?></strong> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <?php the_time('F, Y'); ?>.</p>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

<?php } ?>

</li>



<?php }?>
</ul>





<div id="sidebar_categories" class="widgetcontent">
<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
</div>









<div class="widgetcontent">
<div id="recent-posts">
<h2>Recent Posts</h2>
<ul>
<?php $posts = get_posts('numberposts=5'); foreach($posts as $post) { ?>
<li>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">

<?php the_title(); ?><br />

<span>&mdash;Posted on <?php the_time('n/j/Y') ?></span>
</a>
</li>
<?php } ?>
</ul>
</div>
</div>





<div class="widgetcontent">
<div id="blogroll">
<?php wp_list_bookmarks(); ?>
</div>
</div>



<div id="sidebar_archives"><h2>Archives</h2><span>Browse the Archives</span>
<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
<option value=""><?php echo attribute_escape(__('Select Month')); ?></option>
<?php wp_get_archives('type=monthly&format=option&show_post_count=1'); ?> </select>
</div>




<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<div class="widgetcontent">

<div id="sidemeta">
<h2>Meta</h2>

<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</div>

</div>
<?php } ?>
<?php endif; ?>
<div id="right_footer"></div>


Footer Code:

<div id="bottom_footer"></div>

To my untrained eye, these files don't SEEM to contain the information on that webpage?


Asad Iqbal comments:

RSS Link: Check header.php

<div id="rsslink"><a href="<?php bloginfo('rss2_url'); ?>"></a></div>


For sidebar: check sidebar code

<div id="sidebar_search">

<form id="searchform" method="get" action="<?php bloginfo('home'); ?>">

<div>

<input type="text" name="s" id="s" />

<input type="image" src="<?php bloginfo('template_directory'); ?>/img/search_btn.gif" id="searchsubmit" value="Search" />

</div>

</form>

</div>


And is there any code in footer.php file?


lstevens comments:

I'm a little confused. Did you post your last entry before or after my posting above. I posted the entire list of all files in the proslate directort, as well as all the code in the header, footer, and sidebar php files. But I don't think I see the code that relates to that homepage? Is it hiding from me or could it be in another file?


Asad Iqbal comments:

I posted after your post. Check header.php and find that code block I posted there. Same thing for sidebar, check the sidebar.php and then find the code block I posted and change those according to your wish.

I didn't see footer.php code. Is there anymore code or just
<div id="bottom_footer"></div>

Check my instruction carefully first then modify.


lstevens comments:

Yes, that is all that is in the footer.php file. So, where else could the "Copyright" and Programmers Name information on the bottom be coming from?

With regards to the sidebar, where is all the text in all the "Baystate Testimonials" on the right side stored? And what tool should I use to modify that text?


Asad Iqbal comments:

I guess you can change these widgets by logging in into admin panel and then from widget section:

wp-admin -> widgets then activate-deactivate widgets upon your need.

And for footer, I'm not sure about the code. Can you please pm me ftp details thus I can take a look?


Asad Iqbal comments:

And you can use http://notepad-plus-plus.org/ (Notepad ++) to edit the files.

2012-09-11

Arnav Joy answers:

this is the code for the main content of the page but , there are certain other files which is used in a page like header , footer and sidebar , the things you are looking for may one of these areas , search in your files which is common to all the pages.

let me know if you need any help from me.


lstevens comments:

There are three directories under wp-content/themes (proslate, twentyeleven, twentyten). How do I know which one has the correct file list? Each of these has header, footer, and sidebar files. Where do I look to see which (if any) my site is using?


Arnav Joy comments:

if you have problem in editing files yourself then please provide me access to site , I will do that.