• bikeman123

    (@bikeman123)


    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', 'https://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)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    Thread Starter bikeman123

    (@bikeman123)

    hi, have a look here

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    Thread Starter bikeman123

    (@bikeman123)

    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(https://yoursite.com/wp-content/themes/theme/csspie/PIE.htc);?

    Thread Starter bikeman123

    (@bikeman123)

    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.