Forum Replies Created
-
AuthorPosts
-
September 22, 2019 at 7:24 pm in reply to: Adding Different Theme Element to Genesis Lifestyle Pro Theme #493681TonySan1Member
Thanks Brad! I appreciate your help. If anyone has any additional information or direction about how to do this I will be very greatful for your input as well. Until then.
Tony
September 20, 2019 at 9:43 am in reply to: Adding Different Theme Element to Genesis Lifestyle Pro Theme #493665TonySan1MemberThank you Brad. Can anyone help me figure out how to start the process of selecting the code I will need to duplicate the Generate Pro Optin box widget into Lifestyle Pro. Where will I put the css coding for the box? How and where will I add the functions php code? I just need some idea how to go about finding what I'm looking for and the putting it in the right place. Can anyone point me in the right direction?
September 19, 2019 at 5:20 pm in reply to: Adding Different Theme Element to Genesis Lifestyle Pro Theme #493652TonySan1MemberIs there a way for me to get the e-news extended code used to create the widget on the Generate Pro theme and add it to my Genesis Lifestyle Pro Theme? How can I do it? Can you help?
June 7, 2018 at 7:59 pm in reply to: Create 4 Column Widget Area After Footer In Genisis Life style Pro #220654TonySan1MemberThanks again Terry for your help. The code for that widget will not help me.
June 7, 2018 at 5:36 pm in reply to: Create 4 Column Widget Area After Footer In Genisis Life style Pro #220648TonySan1MemberHi Terry, thank you for your help. But what I'm looking for is to add an additional footer widget area after the main footer. I need that after footer widget area to contain 4 columns. So I want to keep the 3 column footer widget area as well as add a new 4 column widget area. Can anyone help me with the code to create the widget area?
June 2, 2018 at 11:58 am in reply to: Add Widget Area Before Footer On Home Page Lifestyle Pro Theme #220470TonySan1MemberBrad thank you so much man! The code worked like you said it would like a charm. Very thankful. I think it broke my site the first time I added it because I used the WP admin funtions php editor. It worked fine when I used the Hftp editor. Can't thank you enough!
TonyJune 1, 2018 at 4:34 pm in reply to: Add Widget Area Before Footer On Home Page Lifestyle Pro Theme #220461TonySan1MemberHi folks, I am still desperately seeking help with adding this widget area into my Lifestyle Pro Theme. Here's what going on. In my theme there is a default 3 column footer widget area as well as footer for a nav bar below it. I want to put a widget area right between the two of them only on the home page. Can this be done? Can you help?
May 30, 2018 at 12:29 pm in reply to: Add Widget Area Before Footer On Home Page Lifestyle Pro Theme #220393TonySan1MemberPlease help, here is the code on my functions php. I tried adding the code above to the bottom of my functions php and it broke my site. I was able to add a widget area right above the s 3 columb footer section which I wanted. I am just having a really hard time adding a new widget area right above my lower footer. I do have an after entry widget area already showing on my post pages, I also want it to show on my homepage as well. can you plese help me with the code i will need and where to put it so that it won't break my site. I am using SFTP to edit my functions php code because it won't work fro the WP admin editor. Here here is all the code on my functions php:
<?php
/**
* Lifestyle Pro.
*
* This file adds the functions to the Lifestyle Pro Theme.
*
* @package Lifestyle
* @author StudioPress
* @license GPL-2.0+
* @link http://my.studiopress.com/themes/lifestyle/
*/// Start the engine.
include_once( get_template_directory() . '/lib/init.php' );// Setup Theme.
include_once( get_stylesheet_directory() . '/lib/theme-defaults.php' );// Set Localization (do not remove).
add_action( 'after_setup_theme', 'lifestyle_localization_setup' );
function lifestyle_localization_setup(){
load_child_theme_textdomain( 'lifestyle-pro', get_stylesheet_directory() . '/languages' );
}// Add the theme helper functions.
include_once( get_stylesheet_directory() . '/lib/helper-functions.php' );// Add Color select to WordPress Theme Customizer.
require_once( get_stylesheet_directory() . '/lib/customize.php' );// Include Customizer CSS.
include_once( get_stylesheet_directory() . '/lib/output.php' );// Add WooCommerce support.
include_once( get_stylesheet_directory() . '/lib/woocommerce/woocommerce-setup.php' );// Add the WooCommerce customizer CSS.
include_once( get_stylesheet_directory() . '/lib/woocommerce/woocommerce-output.php' );// Include notice to install Genesis Connect for WooCommerce.
include_once( get_stylesheet_directory() . '/lib/woocommerce/woocommerce-notice.php' );// Child theme (do not remove).
define( 'CHILD_THEME_NAME', __( 'Lifestyle Pro', 'lifestyle-pro' ) );
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/lifestyle/' );
define( 'CHILD_THEME_VERSION', '3.2.4' );// Add HTML5 markup structure.
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) );// Add Accessibility support.
add_theme_support( 'genesis-accessibility', array( '404-page', 'drop-down-menu', 'headings', 'rems', 'search-form', 'skip-links' ) );// Add viewport meta tag for mobile browsers.
add_theme_support( 'genesis-responsive-viewport' );// Enqueue Scripts.
add_action( 'wp_enqueue_scripts', 'lifestyle_load_scripts' );
function lifestyle_load_scripts() {wp_enqueue_style( 'dashicons' );
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Droid+Sans:400,700|Roboto+Slab:400,300,700', array(), CHILD_THEME_VERSION );
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
wp_enqueue_script( 'lifestyle-responsive-menu', get_stylesheet_directory_uri() . '/js/responsive-menus' . $suffix . '.js', array( 'jquery' ), CHILD_THEME_VERSION, true );
wp_localize_script(
'lifestyle-responsive-menu',
'genesis_responsive_menu',
lifestyle_responsive_menu_settings()
);}
// Define our responsive menu settings.
function lifestyle_responsive_menu_settings() {$settings = array(
'mainMenu' => __( 'Menu', 'lifestyle-pro' ),
'subMenu' => __( 'Submenu', 'lifestyle-pro' ),
'menuClasses' => array(
'combine' => array(
'.nav-primary',
'.nav-header',
'.nav-secondary',
),
),
);return $settings;
}
// Add image sizes.
add_image_size( 'home-large', 634, 360, TRUE );
add_image_size( 'home-small', 266, 160, TRUE );// Add support for custom background.
add_theme_support( 'custom-background', array(
'default-image' => get_stylesheet_directory_uri() . '/images/bg.png',
'default-color' => 'efefe9',
) );// Add support for custom header.
add_theme_support( 'custom-header', array(
'flex-height' => true,
'header_image' => '',
'header-selector' => '.site-title a',
'header-text' => false,
'height' => 220,
'width' => 640,
) );// Rename menus.
add_theme_support( 'genesis-menus', array( 'primary' => __( 'Before Header Menu', 'lifestyle-pro' ), 'secondary' => __( 'After Header Menu', 'lifestyle-pro' ) ) );// Remove output of primary navigation right extras.
remove_filter( 'genesis_nav_items', 'genesis_nav_right', 10, 2 );
remove_filter( 'wp_nav_menu_items', 'genesis_nav_right', 10, 2 );// Remove navigation meta box.
add_action( 'genesis_theme_settings_metaboxes', 'lifestyle_remove_genesis_metaboxes' );
function lifestyle_remove_genesis_metaboxes( $_genesis_theme_settings_pagehook ) {
remove_meta_box( 'genesis-theme-settings-nav', $_genesis_theme_settings_pagehook, 'main' );
}// Add ID to secondary navigation.
add_filter( 'genesis_attr_nav-secondary', 'lifestyle_add_nav_secondary_id' );
function lifestyle_add_nav_secondary_id( $attributes ) {$attributes['id'] = 'genesis-nav-secondary';
return $attributes;
}
// Remove skip link for primary navigation.
add_filter( 'genesis_skip_links_output', 'lifestyle_skip_links_output' );
function lifestyle_skip_links_output( $links ) {if ( isset( $links['genesis-nav-primary'] ) ) {
unset( $links['genesis-nav-primary'] );
}$new_links = $links;
array_splice( $new_links, 0 );if ( has_nav_menu( 'secondary' ) ) {
$new_links['genesis-nav-secondary'] = __( 'Skip to secondary menu', 'lifestyle-pro' );
}return array_merge( $new_links, $links );
}
// Open wrap within site-container.
add_action( 'genesis_before_header', 'lifestyle_open_site_container_wrap' );
function lifestyle_open_site_container_wrap() {echo '<div class="site-container-wrap">';
}
// Reposition the primary navigation.
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );// Modify the size of the Gravatar in the author box.
add_filter( 'genesis_author_box_gravatar_size', 'lifestyle_author_box_gravatar' );
function lifestyle_author_box_gravatar( $size ) {
return 96;
}// Modify the size of the Gravatar in the entry comments.
add_filter( 'genesis_comment_list_args', 'lifestyle_comments_gravatar' );
function lifestyle_comments_gravatar( $args ) {$args['avatar_size'] = 60;
return $args;
}
// Close wrap within site-container.
add_action( 'genesis_after_footer', 'lifestyle_close_site_container_wrap' );
function lifestyle_close_site_container_wrap() {
echo '</div>';
}// Add support for 3-column footer widgets.
add_theme_support( 'genesis-footer-widgets', 3 );// Add support for after entry widget.
add_theme_support( 'genesis-after-entry-widget-area' );// Relocate after entry widget.
remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );// Register widget areas.
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'lifestyle-pro' ),
'description' => __( 'This is the top section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle',
'name' => __( 'Home - Middle', 'lifestyle-pro' ),
'description' => __( 'This is the middle section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-left',
'name' => __( 'Home - Bottom Left', 'lifestyle-pro' ),
'description' => __( 'This is the bottom left section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-right',
'name' => __( 'Home - Bottom Right', 'lifestyle-pro' ),
'description' => __( 'This is the bottom right section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'before-footer',
'name' => __( 'Before Footer' ),
) );May 29, 2018 at 11:12 pm in reply to: Add Widget Area Before Footer On Home Page Lifestyle Pro Theme #220375TonySan1MemberIs there a way for me to put the after entry widget only on my home page and post pages. I don't want it to show on any other pages except the home page.
Here Is the after entry widget area Code In my Functions php.
// Close wrap within site-container.
add_action( 'genesis_after_footer', 'lifestyle_close_site_container_wrap' );
function lifestyle_close_site_container_wrap() {
echo '</div>';
}// Add support for 3-column footer widgets.
add_theme_support( 'genesis-footer-widgets', 3 );// Add support for after entry widget.
add_theme_support( 'genesis-after-entry-widget-area' );// Relocate after entry widget.
remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );// Register widget areas.
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'lifestyle-pro' ),
'description' => __( 'This is the top section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle',
'name' => __( 'Home - Middle', 'lifestyle-pro' ),
'description' => __( 'This is the middle section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-left',
'name' => __( 'Home - Bottom Left', 'lifestyle-pro' ),
'description' => __( 'This is the bottom left section of the homepage.', 'lifestyle-pro' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-right',
'name' => __( 'Home - Bottom Right', 'lifestyle-pro' ),
'description' => __( 'This is the bottom right section of the homepage.', 'lifestyle-pro' ),
) );May 29, 2018 at 10:17 pm in reply to: Add Widget Area Before Footer On Home Page Lifestyle Pro Theme #220373TonySan1MemberThis is the code that displasys my after entry widget for post pages. Located in my functions php. What do i need to do to have the widget area on my home page?
`// Add support for after entry widget.
add_theme_support( 'genesis-after-entry-widget-area' );// Relocate after entry widget.
remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' );
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 5 );TonySan1MemberErika and Victor, Thank you both so very much for your help. This is by far one of the best forums I've visited because of the folks here being so knowledgeable, willing to help, share and even teach. Again thank you? I will let you know if the code change did the trick.
sincerely
Tony S.TonySan1MemberHi Brad, thank you very much for your response. Your solution makes a lot of sense, I don't know why I didn't think of it myself. What I am wanting to do is to break up the a Navigation tab dropdown into categories where the nav tab for a new category is not a link. Fo example the main nav tag name/category is "Products" which doesn't require a link. Now I add a sub menu tab that describes a type of product say "Digital" which would not require a link or page. but the sub nav tabs to the "Digital" tab would have links to individual digital product types pages. I want to repeat the process with more/different nav tabs in the same "Products" tab dropdown. Main nav tabs and sub nav tags some with links to pages some without. Any advice on a better solution is gratefully accepted.
March 5, 2017 at 8:31 pm in reply to: Add Before Footer Nav Menu On Lifestyle Pro Child Theme #202529TonySan1MemberThanks Brad
March 2, 2017 at 12:43 pm in reply to: Add Before Footer Nav Menu On Lifestyle Pro Child Theme #202358TonySan1MemberI would like the option of having 3. Right now I have 2 by default in the Lifestyle pro child theme. I want to keep this theme but add another nav menu before my footer. What I am looking for the php code to create the support menu in my admin menu page as well as the code to create the widget for that area.
February 27, 2017 at 9:59 pm in reply to: How Can I Change the Header Height For Lifestsyle Pro Child Theme #202148TonySan1MemberThank You Victor.
TonySan1MemberThank You
TonySan1MemberBrad Thank you for your help and advice. I will try it out. 😉
TonySan1MemberWhat I want to do is instead of showing the full front page content Which is now an article on the page I want to only show an excerpt of that article so that I can put other content below.
February 20, 2017 at 6:45 pm in reply to: Add Widget For(Horizontal Grid) Below Content on Genesis Front Page #201681TonySan1MemberHi Victor. Thank you so much for your advice. I am using the Generate Pro theme and I did change the older theme hook and my widget is displaying fine. I would however like to know if you know a good method of adding a horizontal grid to display blog posts excerpts with images and link to the full post? If you do please let me know about it. Thank you again. 😉
February 20, 2017 at 3:42 pm in reply to: Add Widget For(Horizontal Grid) Below Content on Genesis Front Page #201673TonySan1MemberI fixed the code I now have my widget where I want It. I'm still not sure that this is the best way to show a horizontal grid showing my blog posts excerpts, images and links to the full blog post. Any Ideas?
-
AuthorPosts