MortimerOnline
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Parse error: syntax error, unexpected $end in index.phpHello again!
The problem seems to be here. Any suggestions? Tx! 🙂
<?php query_posts('category_name=sure-service&showposts=2'); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <div class="est_text"> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <? if(has_post_thumbnail()) { ?> <img src="<?php echo $image[0]; ?>" alt="" width="76" height="76"/> <? } else { ?> <? } ?> <? ob_start(); the_content(); $content = ob_get_clean(); echo substr($content,0,250); ?> </div> <? endwhile; else: endif; wp_reset_query(); ?> </div> </div>Forum: Themes and Templates
In reply to: Parse error: syntax error, unexpected $end in index.phpAll right then… thanks a lot. Unfortunately I think they gave up. 🙁 They won’t answer back my messages. And they are in India, so I can’t go there and kill them.
However, I must say I commented the whole index.php file just to see where the problem started, and it still showed the same problem. 😐
Oh well, I’ll go on with the investigation and if I find the problem, I will let ya know all.
Forum: Themes and Templates
In reply to: Parse error: syntax error, unexpected $end in index.phpThanks again for your reply.
This is the full message:
Notice: add_custom_background está obsoleto desde la versión 3.4. Utiliza add_theme_support( ‘custom-background’, $args ) en su lugar. in C:\(…)\Blog\wp-includes\functions.php on line 2839 Notice: add_custom_image_header está obsoleto desde la versión 3.4. Utiliza add_theme_support( ‘custom-header’, $args ) en su lugar. in C:\(…)\Blog\wp-includes\functions.php on line 2839 Parse error: syntax error, unexpected $end in C:\(…)\Blog\wp-content\themes\sureserviceser\index.php on line 76
Line 76 is the end of the index.php file.
If I set functions.php to not display error messages, I get a 500 error.
Forum: Themes and Templates
In reply to: Parse error: syntax error, unexpected $end in index.phpThanks for your reply, esmi.
However, I’ve checked the headers on their site and it says
<meta name=”generator” content=”WordPress 3.5.1″ />
And again, the theme works fine in their server. So I assume there must be something in my instalation that is not compatible with their theme, and it’s causing a conflict (maybe an option in functions.php?)So any help on where to start checking out stuff would be much appreciated indeed.
Forum: Themes and Templates
In reply to: remove space below and above imageIf you are not familiar with CSS, try adding the following to your img tag:
padding-top: -10px; padding-bottom: -10px;
As in `<img src=”” style=”padding-top: -10px; padding-bottom: -10px;”>
Play a little with the number of pixels until the image looks correctly positioned.