Support » Fixing WordPress » Aegeus Theme not Working in Chrome

  • Resolved rebecca-paisley

    (@rebecca-paisley)


    Okay a few days ago this started occurring after my hosting provider (dreamhost) had me deactivate and delete wp-super cache since they having their own caching system:

    website http://www.freedomdrugrehab.com
    theme: Aegaeus by HB-Themes (already contacted them and got a response that they were going to look into it, but then no responses over last 2 days)

    Works perfectly in firefox. Once I open the site in Chrome the homepage loads as it is suppose to, but once I go off the homepage it is a style-less page. I have cleared all my browsing data and cache; still same thing.

    I can’t find anything wrong with the coding. Also, have not touched any of it. Loaded up a backup of the site from when it was functioning properly, still same problem.

    Deactivated all plugins – still same problem
    Deactivated one at a time – still same problem
    Contacted hosting provider – they claim it’s a theme malfunction and they do not offer theme support.
    Submitted site to verify code – there were a few errors due to obsolete code – nothing that would be making this happen

    What else can I possibly do to remedy this situation? This is a main business site that gets a decent amount of traffic on a daily basis. I would like some kind of answer as to why it is doing this before I go in making drastic changes.

Viewing 15 replies - 1 through 15 (of 24 total)
  • Looks like this, http://www.freedomdrugrehab.com/wp-content/themes/AegaeusWP/css/style.css is not loading except on the first page. I don’t know why.

    For sure talk to Dreamhost. If this started when you did what they asked then go back to that point.

    I went back to them and they pretty much told me that they will not help me and that it has nothing to do with them even though they were the last ones to make changes.

    I contacted them again – we will see what they say this time.

    Try switching to twentyfifteen and then switch back to your theme.

    You have a child theme with css. Did you follow the Codex? https://codex.wordpress.org/Child_Themes
    That could be why your css in not loading.

    Yes. I have done this as well. Numerous times. I attempted to use the parent theme as well, same issue.

    I keep checking the site in hopes that it fixes itself, but we all know that’s not going to happen. Haha

    well tried it again just for good measure and now the homepage has no style either. Woo Hoo!

    Can you post the functions.php file in the child theme. If it has a lot of code please use pastebin.com and post the link here.

    <?php
    // Enter any additional WordPress functions here.
    
    function add_form_javascript( )
    {
    echo '<script language=\'javascript\' type=\'text/javascript\'>
    function ap_validate_is_multi_answered(multiSelectId) {
    if(typeof document.getElementById(multiSelectId) != \'undefined\') {
    var selectObj = document.getElementById(multiSelectId+\'[]\');
    if((selectObj != null) && (selectObj.tagName == \'SELECT\' || selectObj.tagName == \'select\') && (selectObj.value.length > 0)) {
    return true;
    }
    var inputs = document.getElementsByTagName(\'input\');
    var len = inputs.length;
    for(var i=0;i<len;i++) {
    if((inputs[i].id.indexOf(multiSelectId) != -1) && (inputs[i].selected == true || inputs[i].checked == true)) {
    return true;
    }
    }
    }
    return false;
    }
    function ap_validate_3140() {
    if(typeof document.getElementById == \'undefined\') {
    document.ap_form_3140.submit();
    }
    var form = document.ap_form_3140;
    if (form.name === ""){
    alert( "There was an error on this form." );
    } else if (((typeof form.ap_field_22595 == \'undefined\') || (typeof form.ap_field_22595.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22595\')) {
    alert( \'Please enter all required fields: First Name\');
    } else if ((typeof form.ap_field_22595 != \'undefined\') && (typeof form.ap_field_22595.value != \'undefined\') && (form.ap_field_22595.value === "")) {
    alert( "Please enter all required fields: First Name " );
    } else if (((typeof form.ap_field_22597 == \'undefined\') || (typeof form.ap_field_22597.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22597\')) {
    alert( \'Please enter all required fields: Phone\');
    } else if ((typeof form.ap_field_22597 != \'undefined\') && (typeof form.ap_field_22597.value != \'undefined\') && (form.ap_field_22597.value === "")) {
    alert( "Please enter all required fields: Phone " );
    } else if (((typeof form.ap_field_22594 == \'undefined\') || (typeof form.ap_field_22594.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22594\')) {
    alert( \'Please enter all required fields: Email\');
    } else if ((typeof form.ap_field_22594 != \'undefined\') && (typeof form.ap_field_22594.value != \'undefined\') && (form.ap_field_22594.value === "")) {
    alert( "Please enter all required fields: Email " );
    } else {
    document.ap_form_3140.submit();
    }
    }
    </script>
    <script language=\'javascript\' type=\'text/javascript\'>
                function ap_validate_is_multi_answered(multiSelectId) {
                    if(typeof document.getElementById(multiSelectId) != \'undefined\') {
                        var selectObj = document.getElementById(multiSelectId+\'[]\');
                        if((selectObj != null) && (selectObj.tagName == \'SELECT\' || selectObj.tagName == \'select\') && (selectObj.value.length > 0)) {
                            return true;
                        }
                        var inputs = document.getElementsByTagName(\'input\');
                        var len = inputs.length;
                        for(var i=0;i<len;i++) {
                            if((inputs[i].id.indexOf(multiSelectId) != -1) && (inputs[i].selected == true || inputs[i].checked == true)) {
                                return true;
                            }
                        }
                    }
                    return false;
                }
     function ap_validate_3756() {
       if(typeof document.getElementById == \'undefined\') {
           document.ap_form_3756.submit();
       }
       var form = document.ap_form_3756;
        if (form.name === ""){
          alert( "There was an error on this form." );
        } else if (((typeof form.ap_field_22595 == \'undefined\') || (typeof form.ap_field_22595.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22595\')) {
             alert( \'Please enter all required fields:  First Name\');
        } else if ((typeof form.ap_field_22595 != \'undefined\') && (typeof form.ap_field_22595.value != \'undefined\') && (form.ap_field_22595.value === "")) {
             alert( "Please enter all required fields: First Name " );
        } else if (((typeof form.ap_field_22597 == \'undefined\') || (typeof form.ap_field_22597.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22597\')) {
             alert( \'Please enter all required fields:  Phone\');
        } else if ((typeof form.ap_field_22597 != \'undefined\') && (typeof form.ap_field_22597.value != \'undefined\') && (form.ap_field_22597.value === "")) {
             alert( "Please enter all required fields: Phone " );
        } else if (((typeof form.ap_field_22594 == \'undefined\') || (typeof form.ap_field_22594.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22594\')) {
             alert( \'Please enter all required fields:  Email\');
        } else if ((typeof form.ap_field_22594 != \'undefined\') && (typeof form.ap_field_22594.value != \'undefined\') && (form.ap_field_22594.value === "")) {
             alert( "Please enter all required fields: Email " );
        } else {
          document.ap_form_3756.submit();
        }
     }
     </script>
    ';
    echo '<script language=\'javascript\' type=\'text/javascript\'>
    function ap_validate_is_multi_answered(multiSelectId) {
    if(typeof document.getElementById(multiSelectId) != \'undefined\') {
    var selectObj = document.getElementById(multiSelectId+\'[]\');
    if((selectObj != null) && (selectObj.tagName == \'SELECT\' || selectObj.tagName == \'select\') && (selectObj.value.length > 0)) {
    return true;
    }
    var inputs = document.getElementsByTagName(\'input\');
    var len = inputs.length;
    for(var i=0;i<len;i++) {
    if((inputs[i].id.indexOf(multiSelectId) != -1) && (inputs[i].selected == true || inputs[i].checked == true)) {
    return true;
    }
    }
    }
    return false;
    }
    function ap_validate_3140_bot() {
    if(typeof document.getElementById == \'undefined\') {
    document.ap_form_3140_bot.submit();
    }
    var form = document.ap_form_3140_bot;
    if (form.name === ""){
    alert( "There was an error on this form." );
    } else if (((typeof form.ap_field_22595 == \'undefined\') || (typeof form.ap_field_22595.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22595\')) {
    alert( \'Please enter all required fields: First Name\');
    } else if ((typeof form.ap_field_22595 != \'undefined\') && (typeof form.ap_field_22595.value != \'undefined\') && (form.ap_field_22595.value === "")) {
    alert( "Please enter all required fields: First Name " );
    } else if (((typeof form.ap_field_22597 == \'undefined\') || (typeof form.ap_field_22597.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22597\')) {
    alert( \'Please enter all required fields: Phone\');
    } else if ((typeof form.ap_field_22597 != \'undefined\') && (typeof form.ap_field_22597.value != \'undefined\') && (form.ap_field_22597.value === "")) {
    alert( "Please enter all required fields: Phone " );
    } else if (((typeof form.ap_field_22594 == \'undefined\') || (typeof form.ap_field_22594.value == \'undefined\')) && !ap_validate_is_multi_answered(\'ap_field_22594\')) {
    alert( \'Please enter all required fields: Email\');
    } else if ((typeof form.ap_field_22594 != \'undefined\') && (typeof form.ap_field_22594.value != \'undefined\') && (form.ap_field_22594.value === "")) {
    alert( "Please enter all required fields: Email " );
    } else {
    document.ap_form_3140_bot.submit();
    }
    }
    </script>
    
    ';
    }
    add_action( 'wp_head', 'add_form_javascript' );
    
    add_filter( 'comments_template', 'remove_comments_template_on_pages', 11 );
    
    function remove_comments_template_on_pages( $file ) {
    if ( is_page() )
    $file = STYLESHEETPATH . '/disable-page-comments.php';
    return $file;
    }
    ?>

    That’s the child theme’s function.php

    Now just the first 20 lines of the child’s style.css

    /*
    Theme Name:     Aegaeus Child
    Theme URI:      http://hb-themes.com/themes/aegaeus_wp/
    Description:    Child theme for the Aegaeus theme
    Author:         HB-Themes
    Author URI:     http://hb-themes.com/
    Template:       AegaeusWP
    Version:        1.0
    */
    
    @import url("../AegaeusWP/style.css");
    
    body{
    background-color:#362825!important;
    font-family:'PT Sans', Arial, sans-serif;
    }
    
    a { color:#5A8D47;}
    ul li a { color:#666666; }
    .trigger a { color:#323232;}
    ol { list-style:decimal;margin-left:17px;}

    This line in the child style.css, @import url("../AegaeusWP/style.css"); should read, @import url("../AegaeusWP/css/style.css");

    Changed the one line – cleared cache in browser – still same thing

    /*
    Theme Name:     Aegaeus Child
    Theme URI:      http://hb-themes.com/themes/aegaeus_wp/
    Description:    Child theme for the Aegaeus theme
    Author:         HB-Themes
    Author URI:     http://hb-themes.com/
    Template:       AegaeusWP
    Version:        1.0
    */
    
    @import url("../AegaeusWP/css/style.css");

    and now with new code site is not working at all in firefox

    OK. You can change it back. We don’t use the @import url method anymore. The new way is shown in https://codex.wordpress.org/Child_Themes
    But the old should still work.

    All of the css has been minified. Can you turn off what plugin is doing it or if it is a theme setting turn it off.

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘Aegeus Theme not Working in Chrome’ is closed to new replies.