WordPress.org

Support

Support » Themes and Templates » css pie problem

css pie problem

  • I am using csspie with the following css:

    .roundedcorners10 {
       border-radius:10px;
       behavior: url(wp-content/themes/theme/csspie/PIE.htc);
       }

    In functions.php I have

    /* call google jquery */
    function my_scripts_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js');
        wp_enqueue_script( 'jquery' );
    }

    All is working fine on my home page but not on any other pages. There doesn’t seem to be any reason for this. Even if I reduce both the homepage template and the subpage template to:

    <?php get_header(); ?>
    <?php get_footer(); ?>

    css pie still only works on the homepage. Can anyone suggest why this might be so. thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    Provide a link to your website, otherwise it’s unlikely the CSS-based issue will be diagnosed from these forums.

    hi, have a look here

    Moderator Andrew Nevins

    @anevins

    Forum moderator

    I’ve clicked on all pages in your global navigation, but can’t find this issue. Which browser and browser version are you experiencing the issue?

    Try it with ie 7 & 8.
    On the homepage the menus and the gold contact box have rounded corners.
    The sub-pages do not.

    I suspect the problem is with the url you’re using to call the CSS3PIE url: on the home page, the browser is able to parse the relative url as yoursite.com/wp-content/ etc, but on another page, it’s looking for yoursite.com/someotherpage/wp-content/themes … which of course doesn’t exist.

    What happens if you change the url in your css to behavior: url(/wp-content/themes/theme/csspie/PIE.htc);?

    Or if that fails, try the full url: behavior: url(http://yoursite.com/wp-content/themes/theme/csspie/PIE.htc);?

    I wanted to avoid using an absolute url but I guess it’ll have to be. thanks anyway.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘css pie problem’ is closed to new replies.