Wordpress IE issue
Posted on
16th Feb 2014 07:03 pm by
admin
So I am trying to add the background shadow to my wordpress page. It works fine in Firefox but does not in IE.
So here is the original code:
<?php get_header(); ?>
<?php sy_pre_content(); ?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<!--<h2><?php the_title(); ?></h2> -->
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php endwhile; endif; ?>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
You can skip to the end and leave a response. Pinging is currently not allowed.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<!-- Both comments and pings are currently closed. -->
<?php } edit_post_link('Edit this entry','','.'); ?>
<?php comments_template(); ?>
</div><!-- content -->
<?php sy_post_content(); ?>
<?php get_footer(); ?>
my new background is a <div id="shadow"> I put it on the very first and last line of the code.
Any idea why IE does not display the shadow? Actually this div is breaking the page in IE.
Thanks in advance
No comments posted yet
Your Answer:
Login to answer
278
8
Other forums
PHP time (deadline within one week)
I have a column ['projdue'], which stores the deadline for a project.
I have PHP code and <
php forms and database navigatio
Hello,
I'm new to php and i'd like to post the following.
I have written code to get records f
Easy administration on MySQL databases
My website is database driven and I am very tired of manually making queries to my tables in order t
Help pulling in 'id' with "read more" link
I'm trying to create snippets of my articles in the cms I'm creating, and then have them redirect to
Stumped by Third Day of Month problem
I am trying to build an algorithm that will essentially do this:
Code: [Select]$this_month = Oct
insert PHP code into function
Hi,
I'm having problems when trying following:
I have:
Code: [Select]createBar("Do
Strange php code found on my website
I got hacked and the following code was placed within my files:
Code: [Select]<?
/*
InternetOpenUrl() Invalid cert
Hi all,
Does anyone know how to prevent calls to InternetOpenUrl() from failing with erro
Executing an exe
Hi. I have some bizarre problem with exec (other any other method) to launch exe's. I am making a ga
Menu restriction
How can I restrict the individual menu that would appear when a user logs in so that all users are c