• Resolved timyoungorg

    (@timyoungorg)


    [ Moved to the Fixing WordPress sub-forum. ]

    Recently, on checking my website, I see that the CSS is not working on my homepage. When I click on my name/logo, the right format comes up but the grey box, which I removed, is visible.

    Perhaps this is occurring since I added “One-Click Child Theme” as I’m about to construct a child theme. I deactivated the plugin but it didn’t change anything.
    I also called my website provider, but that doesn’t seem to be a source of the problem.

    My website is timyoung.ca and my theme is Blask.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator t-p

    (@t-p)

    you home seems normal from my end!

    try flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as Cloudflare. If your host provider has a “Purge Varnish” option or if you can ask your provider to flush memcache on your server. If you are using SiteLock, manage your caching there.

    Thread Starter timyoungorg

    (@timyoungorg)

    I got the plugin WP Super Cache and went through the steps. I also emailed my host provider but their response informed me that “we don’t have support for 3rd parity applications like WordPress, please contact a web programmer to help you about this case.”

    Later, I went to my homepage again and things are almost back to normal except that the grey box is below the logo. Should my route be to add CSS in a child theme to deal with this— and if so could you suggest what should be put there
    to erase this?

    Thanks very much for your help so far.

    Moderator t-p

    (@t-p)

    Should my route be to add CSS in a child theme to deal with this

    You have a few options:

    – creating a child theme otherwise all your customization will be overwritten when you next update your theme.

    Alternately:

    – If your theme has a custom CSS option, use that to add the CSS.
    – If you are using WordPress 4.7+, use the “Additional CSS” option in the customizer.
    – If not, install the plugin Simple Custom CSS.

    Thread Starter timyoungorg

    (@timyoungorg)

    I’m using Jetpack so I went to “Additional CSS” and tested four separate suggestions found on the support forum to erase the grey box under my logo.
    None of them worked. Could you suggest a solution?

    Thanks.

    #content {
    display: none;
    }

    #panel-6-0-0-2 .panel-widget-style {
    border: none !important;
    }

    .breadcrumbs {
    display: none;
    }

    .featured-content{
    display:none;
    }

    Thread Starter timyoungorg

    (@timyoungorg)

    I’ve cleared up the question I posed previously.
    Thanks for your help.

    Moderator t-p

    (@t-p)

    Glad to know it 🙂

    Thread Starter timyoungorg

    (@timyoungorg)

    One more problem I’m trying to deal with. My website’s homepage (timyoung.ca), presents all Project Types together. What I’d like as the introductory page is to land on the design part of the menu and then have the visitor choose to click on the illustration category next or the info section etc. which I will soon add. Below is a solution to someone’s similar wish but with their blog. As someone in over my head in this case, I’ve made an attempt below this example to tweak it to suit the aim of a static page. Am I on the right track?

    <?php
    /**
    * Set custom post type archive as front page.
    *
    * @since 1.0.0
    */
    function ql_set_as_front_page( $query ) {
    if ( is_admin() || ! $query->is_main_query() ) {
    return;
    }
    if ( ql_is_front_page( $query ) ) {
    $query->set( ‘page_id’, ” );
    $query->is_page = false;
    $query->is_singular = false;
    $query->set( ‘post_type’, ‘MYCPT’ );
    $query->is_archive = true;
    $query->is_post_type_archive = true;
    }
    }
    add_action( ‘pre_get_posts’, ‘ql_set_as_front_page’ );

    /**
    * Taken from WP_Query::is_front_page and adapted to compare page_on_front with current page ID.
    *
    * @since 1.0.0
    *
    * @param object $query The main WP Query.
    */
    function ql_is_front_page( $query ) {
    if ( ‘posts’ == get_option( ‘show_on_front’) && $query->is_home() )
    return true;
    elseif ( ‘page’ == get_option( ‘show_on_front’) && get_option( ‘page_on_front’ ) && $query->get(‘page_id’) == get_option( ‘page_on_front’ ) )
    return true;
    else
    return false;
    }

    MY ALTERNATE ATTEMPT—

    <?php
    /**
    * Set custom project type archive as front page.
    *
    * @since 1.0.0
    */
    function ql_set_as_front_page( $query ) {
    if ( is_admin() || ! $query->is_main_query() ) {
    return;
    }
    if ( ql_is_front_page( $query ) ) {
    $query->set( ‘page_id’, ” );
    $query->is_page = false;
    $query->is_singular = false;
    $query->set( ‘project_type );
    $query->is_archive = true;
    $query->is_project_type_archive = true;
    }
    }
    add_action( ‘pre_get_design’, ‘ql_set_as_front_page’ );

    /**
    * Taken from WP_Query::is_front_page and adapted to compare page_on_front with current page ID.
    *
    * @since 1.0.0
    *
    * @param object $query The main WP Query.
    */
    function ql_is_front_page( $query ) {
    if ( ‘project_type’ == get_option( ‘show_on_front’) && $query->is_home() )
    return true;
    elseif ( ‘page’ == get_option( ‘show_on_front’) && get_option( ‘page_on_front’ ) && $query->get(‘page_id’) == get_option( ‘page_on_front’ ) )
    return true;
    else
    return false;
    }

    Moderator t-p

    (@t-p)

    One more problem I’m trying to deal with.

    My suggestion is to start a new thread for this new problem

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘homepage css’ is closed to new replies.