Community Forums › Forums › Archived Forums › Design Tips and Tricks › Altitude Pro Add button to bottom of front page 3 widget area
Tagged: altitude, child theme, genesis, layout
- This topic has 9 replies, 3 voices, and was last updated 10 years, 6 months ago by
phacient.
-
AuthorPosts
-
January 22, 2016 at 9:21 am #177180
socialspark
MemberI know that Altitude Pro is formatted very specifically for different layouts depending on the number of widgets. I have 7 text widgets in the front page 3 widget area - one for the heading, and then 6 for services the company offers. They display very nicely as a heading over 2 rows of 3 services. The problem is, I'd like to put a "Learn More" button centered below these 6 services, but if I add another text widget for the button, then it changes to 3 rows of 2 for the services, which I don't want. Is there any way to add a single, centered item below these without changing them, or is that just the way it is? I'd like to do something similar in the front page 2 section as well.
Thanks in advance.
http://c8d.aee.myftpupload.com/January 24, 2016 at 7:48 pm #177402Christoph
MemberHi,
if you are not using an even number of widgets in any of the other widget areas,
you can simply change the logic in functions.php (around line 172) intoelseif( $count % 2 == 0 ) { $class .= ' widget-thirds';and in the style.css add width: 100%; to last text widget.
e.g.#text-## { width: 100%; }
January 26, 2016 at 10:58 am #177571socialspark
MemberThank you, Christoph, that worked perfectly!
February 5, 2016 at 7:42 pm #178409phacient
MemberWhat if you only wanted to change it for one or two widgets and not for the entire home page. Is that possible?
February 5, 2016 at 9:11 pm #178418Christoph
MemberHi,
I´m not exactly sure what you want to achieve, but you could change the classes added to the widgets in front-page.php.
If you want to exclude widgets areas from the logic, you could try to remove e.g.
' . altitude_widget_area_class( 'front-page-2' ) . 'from
'before' => '<div id="front-2" class="front-page-2"><div class="solid-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-2' ) . '"><div class="wrap">',
February 5, 2016 at 9:36 pm #178424phacient
MemberI'm basically trying to just have the ability to add the text widgets as I want and then put a centered widget/button at the bottom to 'learn more' or 'compare packages'. Right now, it's adding that widget to the end of the line as if it were another package/benefit/feature.
February 6, 2016 at 12:08 am #178442Christoph
MemberYou probably could change the css or add css just for that one widget.
But you might have to change/remove the widget logic.
Do you have an URL that you can share?
February 6, 2016 at 12:50 pm #178476phacient
MemberThe site is under construction under behind a maintenance window. I could send you a login privately if you like.
February 6, 2016 at 2:43 pm #178480Christoph
MemberFebruary 7, 2016 at 11:31 am #178515phacient
MemberThis reply has been marked as private. -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.