WordPress.org

Ready to get started?Download WordPress

Forums

css pie problem (7 posts)

  1. bikeman123
    Member
    Posted 1 year ago #

    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

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  3. bikeman123
    Member
    Posted 1 year ago #

    hi, have a look here

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    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?

  5. bikeman123
    Member
    Posted 1 year ago #

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

  6. 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);?

  7. bikeman123
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.