• #pages ul li a:before{
    content:” .: “;
    color:#ff7800;

    It works fine in FF, but not in IE. I would still like to have the .: before the headers though, any other way to do this?

    Anyone?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The CSS “before” tag in general doesn’t work in IE.

    Only solution is to modify the actual relevant code in your PHP to add the required text that you want.

    Thread Starter cassady

    (@cassady)

    That would be this part:

      <?php wp_list_pages(‘depth=1&title_li=’ ); ?>

    But that’s all I know, I am a complete n00b at this. Can you tell me how and where to put the .: in this color ff7800

    thanks a million

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The wp_list_pages has a filter available for it’s output, so you can add a filter to be able to add your header before the anchor tag.


    function my_list_pages_filter($str)
    {
    preg_replace('/<a/i','<span style="color: #ff7800;">.:</span><a',$str);
    }
    add_filter('wp_list_pages','my_list_pages_filter');

    You’d probably want to add this to your functions.php file in your theme.

    Thread Starter cassady

    (@cassady)

    Now this is confusing, my theme doesn’t have a functions.php…

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    So make a new file in your theme, call it functions.php, add that code to it and put a <?php and ?> around it (so it runs as proper php code). Done and done.

    Does anyone know why the code for hiding pages or page titles works in Firefox but not Internet Explorer? Cause it would be great if I could get it to work for both.

    kt101 – one thread is sufficient: http://wordpress.org/support/topic/73095?replies=3

    Thread Starter cassady

    (@cassady)

    thanks for your help Otto42

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘a:before doesn’t work in IE, alternatives?’ is closed to new replies.