[Resolved] I have managed to break footer area.

Home Forums Support [Resolved] I have managed to break footer area.

Home Forums Support I have managed to break footer area.

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1004983
    Mika

    Hello

    I have premium version and i have managed to break footer area.
    3 footer widgets are showing top of each other instead horizontal.
    I am using one-container setup.

    Customize setting are for footer:
    – Footer width is Contained
    – Inner footer width is Full
    – Footer widgets 3
    – Back to top button: Disabled
    – Footer widget area padding; 20, 40, 20,40
    – Footer padding; 20,20,20,20

    /*————————————————————–
    # Footer
    ————————————————————–*/
    .site-info {
    text-align: center;
    padding: 20px;
    font-size: 15px;
    }

    .site-footer .footer-widgets-container .inner-padding {
    padding: 0px 0px 0px 40px;
    }

    .footer-widgets-container .inside-footer-widgets {
    margin-left: -40px;
    }
    .footer-widgets {
    padding: 40px 0px 20px 0px;
    background-color: lightgrey;
    }
    .sidebar .widget *:last-child,
    .footer-widgets .widget *:last-child {
    margin-bottom: 0;
    }
    .widget-title {
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.5;
    font-weight: normal;
    text-transform: none;
    }
    .separate-containers .inside-article > [class*=”page-header-“],
    .one-container .inside-article > [class*=”page-header-“] {
    margin-bottom: 2em;
    margin-top: 0;
    }

    Thanks Mika

    #1004989
    Leo
    Staff
    Customer Support

    Hi there,

    What happens if you activate the parent theme?

    #1004996
    Mika

    breaks totally page, even background image is gone.

    #1005003
    Leo
    Staff
    Customer Support

    Have you modified any of the free theme or premium plugins?

    Can you disable all plugins except GP Premium first?

    #1005020
    Mika

    I had Classic editor and GB premium as plugin.
    Generatepress free as main theme and child theme which I have added
    extra css like background image and customize header.

    If I disable my custom theme, site is totally broken.

    I have changed site width from 1200 px to 1430 px.
    But that should not break footer as it count per width, right ?

    #1005025
    Leo
    Staff
    Customer Support
    #1005044
    Mika

    I have already removed footer widgets and replace them one by one , no change.

    GP Plugin, which gives premium generates grid for footer, right?

    my custom functions.php is

    <?php
    
    function wpb_image_editor_default_to_gd( $editors ) {
     $gd_editor = 'WP_Image_Editor_GD';
     $editors = array_diff( $editors, array( $gd_editor ) );
     array_unshift( $editors, $gd_editor );
     return $editors;
    }
    add_filter( 'wp_image_editors', 'wpb_image_editor_default_to_gd' );
    
    	 add_action( 'wp_enqueue_scripts', 'tuotantopalvelu_enqueue_styles' );
    
    function tuotantopalvelu_enqueue_styles() {
     		  wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
     		  }
          /**
           * GeneratePress child theme functions and definitions.
           *
           * Add your custom PHP in this file. 
           * Only edit this file if you have direct access to it on your server (to fix errors if they happen).
           */
          
          function generatepress_child_enqueue_scripts() {
          	if ( is_rtl() ) {
          		wp_enqueue_style( 'generatepress-rtl', trailingslashit( get_template_directory_uri() ) . 'rtl.css' );
          	}
          }
          add_action( 'wp_enqueue_scripts', 'generatepress_child_enqueue_scripts', 100 );
    #1005057
    Leo
    Staff
    Customer Support

    So is the issue fixed if you remove those functions temporarily?

    It wasn’t broken before so something you’ve added is causing the issue.

    Switching to the original parent theme should fix it though unless you’ve modified something in there as well.

    #1005071
    Mika

    I haven’t touch main theme or GP Premium plugin code.
    I have replaced already Generatepress theme style.css from original zip.
    Now I deleted functions.php from child theme, It did not fix footer area.

    #1005079
    Leo
    Staff
    Customer Support

    The default grid- CSS simply isn’t loading.

    Looks like the child theme header issue I mentioned above isn’t fixed either:
    https://www.screencast.com/t/VpMf62gC

    That part will need to match the default child theme as Tom mentioned here otherwise things will break:
    https://generatepress.com/forums/topic/my-site-has-broken-please-help-me/#post-957882

    Can you switch to the parent theme and disable any custom functions added and let me have a look?

    #1005092
    Mika

    I have changed child theme name, but no change for footer.

    Swicthed back to main theme.

    #1005096
    Leo
    Staff
    Customer Support

    Can you try re-installing the parent theme?

    This file is simply not loading for you:
    https://github.com/tomusborne/generatepress/blob/master/css/unsemantic-grid.min.css

    It’s like it doesn’t even exist.

    #1005114
    Mika

    customize -> General
    – Combine CSS and
    – Cache Dynamic CSS

    now checked and problem fixed, now child-theme works again.

    Thanks for your support.

    #1005118
    Leo
    Staff
    Customer Support

    That option definitely shouldn’t break things but glad you found a solution.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.