Remove column - by alahdal - on WordPress WooCommerce support

This topic has 7 replies, 2 voices, and was last updated 2 years, 6 months ago ago by Olga Barlow

  • Avatar: alahdal
    alahdal
    Participant
    October 4, 2021 at 06:10

    Hello,
    1)
    I want to remove one of the columns in the footer I already removed the content but the div still exists!
    https://prnt.sc/1upkgg9

    when I delete it with the browser and rearrange the column’s classes it works fine
    https://prnt.sc/1upl2ym
    but where can I edit the HTML content?
    or if there is a simpler option?

    2)
    I have a problem with fonts that are imported from another server
    https://prnt.sc/1uplumg
    I am not even using it on my website!
    that’s the font that I use https://fonts.google.com/specimen/Tajawal
    and I think it’s slowing down my website
    https://prnt.sc/1upm653

    and thanks for helping

    Please, contact administrator
    for this information.
    6 Answers
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 4, 2021 at 15:40

    Hello,

    1) Go to Theme Options > Footer > Choose 3 columns layout.
    2) You can the below code to disable these types of icon font that we use in our theme. Add the code to child theme functions.php

    add_filter('etheme_preload_woff_icons', '__return_false')
    add_filter('etheme_preload_woff2_icons', '__return_false')

    Regards

    Avatar: alahdal
    alahdal
    Participant
    October 4, 2021 at 19:36

    1)
    when I select 3 columns it deletes the last one not the empty one
    also, I want the middle one to take the most size like this.
    https://prnt.sc/1us7w4c
    https://prnt.sc/1us80mg

    2)
    it worked fine
    https://prnt.sc/1us6z9e

    but another problem shows up!
    https://prnt.sc/1us6pn2

    Avatar: alahdal
    alahdal
    Participant
    October 4, 2021 at 20:50

    2) thank you it worked

    3) is solved , I deactivate the jetpack plugin and it worked

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 5, 2021 at 10:18

    Hello,

    1) Enable 3 colums layout and then go to Appearance > Widgets and place your widgets to 3 footer widget areas. Move the content of the 3 Footer widget area to 2Footer widget area and add the necessary widget to the 3d one.

    Regards

    Avatar: alahdal
    alahdal
    Participant
    October 5, 2021 at 19:37

    1) it worked partially
    https://prnt.sc/1ux0ugo

    I want the middle to be wider and take more space
    like this
    https://prnt.sc/1us7w4c
    https://prnt.sc/1us80mg

    I went to the Theme editor and select (footer.php)
    and edited the original code

    
    <?php  if ( ! defined('ABSPATH')) exit('No direct script access allowed');
    /**
     * The template for displaying theme footer
     *
     * @since   6.2.12
     * @version 1.0.0
     */
    
    $custom_footer = etheme_get_query_custom_field('custom_footer');
    $fcolor = etheme_get_option('footer_color', 'dark');
    
    ?>
    
    <?php if($custom_footer != 'without' && ( ! empty( $custom_footer ) || is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') || is_active_sidebar('footer-4') )): ?>
    	<footer class="footer text-color-<?php echo esc_attr($fcolor); ?>">
    		<div class="container">
    			<?php if(empty($custom_footer)): ?>
    				<div class="row">
    					<?php
    					$footer_columns = (int) etheme_get_option('footer_columns', 4);
    					if( $footer_columns < 1 || $footer_columns > 4) $footer_columns = 4;
    					$footer_widget_class = etheme_get_footer_widget_class($footer_columns);
    					for($_i=1; $_i<=$footer_columns; $_i++) {
    						echo '<div class="footer-widgets ' . $footer_widget_class .'">';
    							if(is_active_sidebar('footer-'.$_i)) dynamic_sidebar( 'footer-'.$_i );
    						echo '</div>';
    					}
    					?>
    				</div>
    			<?php else: ?>
    				<?php etheme_static_block($custom_footer, true); ?>
    			<?php endif; ?>
    		</div>
    	</footer>
    <?php endif; ?>
    

    and I changed it to this

    
    <?php  if ( ! defined('ABSPATH')) exit('No direct script access allowed');
    /**
     * The template for displaying theme footer
     *
     * @since   6.2.12
     * @version 1.0.0
     */
    
    $custom_footer = etheme_get_query_custom_field('custom_footer');
    $fcolor = etheme_get_option('footer_color', 'dark');
    
    ?>
    
    <?php if($custom_footer != 'without' && ( ! empty( $custom_footer ) || is_active_sidebar('footer-1') || is_active_sidebar('footer-2') || is_active_sidebar('footer-3') )): ?>
    	<footer class="footer text-color-<?php echo esc_attr($fcolor); ?>">
    		<div class="container">
    			<?php if(empty($custom_footer)): ?>
    				<div class="row">
    					<?php
    					$footer_columns = (int) etheme_get_option('footer_columns', 3);
    					if( $footer_columns < 1 || $footer_columns > 3) $footer_columns = 3;
    					$footer_widget_class = etheme_get_footer_widget_class($footer_columns);
    					for($_i=1; $_i<=$footer_columns; $_i++) {
    						echo '<div class="footer-widgets ' . $footer_widget_class .'">';
    							if(is_active_sidebar('footer-'.$_i)) dynamic_sidebar( 'footer-'.$_i );
    						echo '</div>';
    					}
    					?>
    				</div>
    			<?php else: ?>
    				<?php etheme_static_block($custom_footer, true); ?>
    			<?php endif; ?>
    		</div>
    	</footer>
    <?php endif; ?>
    

    it works and removes the 4th column, but I want to know if it is right to do that

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    October 6, 2021 at 11:46

    Hello,

    Nope, don’t edit the footer file if you want to have a custom footer layout. In this case, use Static blocks, watch the video tutorial https://youtu.be/gY-x4m47Duo but instead of WPBakery use Elementor page builder to edit the footer Static block content.

    Regards

  • Viewing 7 results - 1 through 7 (of 7 total)

The issue related to '‘remove column’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.