Community Forums › Forums › Archived Forums › General Discussion › How to remove a footer widget area in Agency Pro
Tagged: agency pro, footer widget areas
- This topic has 6 replies, 5 voices, and was last updated 7 years, 8 months ago by manh941991.
-
AuthorPosts
-
January 15, 2016 at 9:36 am #176591staceychurchParticipant
Hi
I have removed a Footer widget area in Agency Pro ( the theme has 3 footer widget areas)
I have changed code functions.php from this;
//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );to this;
//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 2 );I want to make sure that I can resize each widget area to be half the full width.
I have tried this is CSS;
.footer-widgets-1 widget-area{
width:50%;
}
.footer-widgets-2 widget-area{
width:50%;
}No luck, any help please.
Sorry the URL will be useless as site has Coming Soon plugin activated
http://d-tfs.co.ukJanuary 15, 2016 at 11:22 am #176604Victor FontModeratorThe footer widget CSS starts around 1596 in style.css. All you need is .footer-widgets-1 and .footer-widgets-2:
.footer-widgets-1,
.footer-widgets-2 {
width: 50%;
}Make sure you comment out the other widths.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?January 18, 2016 at 5:37 am #176847staceychurchParticipantThanks Victor.
You mean comment out this bit of CSS under Footer Widgets
*/
.footer-widgets-1,
.footer-widgets-3 {
width: 350px;
}.footer-widgets-2 {
width: 360px;
}.footer-widgets-1 {
margin-right: 40px;
}.footer-widgets-1,
.footer-widgets-2 {
float: left;
}.footer-widgets-3 {
float: right;
}
/*January 19, 2016 at 3:39 am #176900chuvanduyhn91MemberThank you for sharing in the solutions and I have made them successful
June 14, 2016 at 1:26 am #187509mrlandMemberInformation is wonderful. I need to learn about this, very happy to have found them here
Download free all the hottest games for Android here
July 13, 2016 at 3:58 am #189386manh941991MemberEdit Altitude Pro’s functions.php.
a) Change
//* Add support for 1-column footer widget area
add_theme_support( 'genesis-footer-widgets', 1 );
view rawgistfile1.php hosted with ❤ by GitHub
to//* Add support for 2-column footer widget areas
add_theme_support( 'genesis-footer-widgets', 2 );
view rawgistfile2.php hosted with ❤ by GitHub
b) Change//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'footer-widgets',
'footer',
) );
view rawgistfile3.php hosted with ❤ by GitHub
to//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
// 'footer-widgets',
'footer',
) );
view rawgistfile4.php hosted with ❤ by GitHub
Step 2
Edit Altitude Pro’s style.css.Replace the Footer Widgets section (line 1688 to line 1726 in the unmodified Altitude Pro’s stylesheet) with the following:
/*
Footer Widgets
---------------------------------------------------------------------------------------------------- */.footer-widgets {
/*background-color: #22a1c4;*/
clear: both;
text-align: center;
position: relative;
z-index: 9;
}/*.footer-widgets .wrap {
padding-bottom: 100px;
padding-top: 100px;
}*/.footer-widgets,
.footer-widgets .wrap a,
.footer-widgets .wrap a.button {
color: #fff;
}.footer-widgets a:hover {
color: #000;
}.footer-widgets li {
margin-bottom: 10px;
padding-bottom: 10px;
}.footer-widgets .widget {
/*margin-bottom: 40px;*/
max-width: 1200px;
margin: 0 auto;
padding-top: 100px;
}.footer-widgets .widget:last-child {
padding-bottom: 100px;
}.footer-widgets p:last-child {
margin-bottom: 0;
}.footer-widgets-1 {
background-color: #22a1c4;
}.footer-widgets-1 a {
color: #fff;
}.footer-widgets-2 {
background-color: #23282d;
}
view rawstyle.css hosted with ❤ by GitHub
Step 3
At Appearance > Widgets populate Footer 2 widget area with your desired widget(s).sửa chữa ?‘iều hòa chung cư thanh hà
July 17, 2016 at 7:25 am #189383manh941991MemberEdit Altitude Pro’s functions.php.
a) Change
//* Add support for 1-column footer widget area
add_theme_support( 'genesis-footer-widgets', 1 );
view rawgistfile1.php hosted with ❤ by GitHub
to//* Add support for 2-column footer widget areas
add_theme_support( 'genesis-footer-widgets', 2 );
view rawgistfile2.php hosted with ❤ by GitHub
b) Change//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'footer-widgets',
'footer',
) );
view rawgistfile3.php hosted with ❤ by GitHub
to//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
// 'footer-widgets',
'footer',
) );
view rawgistfile4.php hosted with ❤ by GitHub
Step 2
Edit Altitude Pro’s style.css.Replace the Footer Widgets section (line 1688 to line 1726 in the unmodified Altitude Pro’s stylesheet) with the following:
/*
Footer Widgets
---------------------------------------------------------------------------------------------------- */.footer-widgets {
/*background-color: #22a1c4;*/
clear: both;
text-align: center;
position: relative;
z-index: 9;
}/*.footer-widgets .wrap {
padding-bottom: 100px;
padding-top: 100px;
}*/.footer-widgets,
.footer-widgets .wrap a,
.footer-widgets .wrap a.button {
color: #fff;
}.footer-widgets a:hover {
color: #000;
}.footer-widgets li {
margin-bottom: 10px;
padding-bottom: 10px;
}.footer-widgets .widget {
/*margin-bottom: 40px;*/
max-width: 1200px;
margin: 0 auto;
padding-top: 100px;
}.footer-widgets .widget:last-child {
padding-bottom: 100px;
}.footer-widgets p:last-child {
margin-bottom: 0;
}.footer-widgets-1 {
background-color: #22a1c4;
}.footer-widgets-1 a {
color: #fff;
}.footer-widgets-2 {
background-color: #23282d;
}
view rawstyle.css hosted with ❤ by GitHub
Step 3
At Appearance > Widgets populate Footer 2 widget area with your desired widget(s).Xem thêm: http://sandatvanghanoi.com/can-ho-chung-cu-thanh-ha-muong-thanh-gia-re/ | http://khudothithanhha.net/kiot-chung-cu-thanh-ha-cienco-5-muong-thanh-gia-soc/ | http://dienlanhgiasoc.vn/trung-tam-dich-vu-sua-chua-dieu-hoa-tai-nha-ha-noi/
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.