Community Forums › Forums › Archived Forums › Design Tips and Tricks › Need your opinion on how/where to add credibility elements
Tagged: Add Widget
- This topic has 9 replies, 3 voices, and was last updated 8 years, 3 months ago by wadams92101.
-
AuthorPosts
-
September 26, 2016 at 1:36 pm #193729danstelterMember
So this is in regard to my home page:
I have logos of 8 popular blogs I've been published at (Content Marketing Institute, MarketingProfs, Kissmetrics etc...) that I'd like to add to the home page. Where would you put these in and how would you do it?
My initial thought is to put them just below the title. I'd copy and paste them all into a single image. But, I'm not so sure about that. Anyway, they should be above the fold somehow.
What do you think?
Appreciate it,
Dan
http://www.b2bleadgenguy.comSeptember 27, 2016 at 2:50 am #193740September 27, 2016 at 1:41 pm #193775danstelterMemberAppreciate it, Brad. But, I don't want to hide the logos at the bottom of the page. I want them above the fold somewhere, such as this:
For my business especially, it's a huge credibility booster..
September 28, 2016 at 1:34 pm #193844danstelterMemberAfter some research and tinkering, I'd like to add a custom sidebar into the home page on the right to get those logos above the fold. How would I do that?
Thanks,
Dan
September 29, 2016 at 1:02 am #193862Brad DaltonParticipantSeptember 29, 2016 at 12:03 pm #193899danstelterMemberAppreciate it a ton, Brad. That's exactly what I want to do. Copied + pasted into functions.php, but can't get it to work. Have the Static Front Page set. Also, changed the sidebar within that so it should be showing one.
What am I missing?
Current functions.php code:
<?php
//* 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)
load_child_theme_textdomain( 'parallax', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'parallax' ) );//* Add Image upload to WordPress Theme Customizer
add_action( 'customize_register', 'parallax_customizer' );
function parallax_customizer(){require_once( get_stylesheet_directory() . '/lib/customize.php' );
}
//* Include Section Image CSS
include_once( get_stylesheet_directory() . '/lib/output.php' );//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Parallax Pro Theme' );
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/parallax/' );
define( 'CHILD_THEME_VERSION', '1.1' );//* Enqueue scripts and styles
add_action( 'wp_enqueue_scripts', 'parallax_enqueue_scripts_styles' );
function parallax_enqueue_scripts_styles() {wp_enqueue_script( 'parallax-responsive-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/responsive-menu.js', array( 'jquery' ), '1.0.0' );
wp_enqueue_style( 'dashicons' );
wp_enqueue_style( 'parallax-google-fonts', '//fonts.googleapis.com/css?family=Montserrat|Sorts+Mill+Goudy', array(), CHILD_THEME_VERSION );}
//* Add HTML5 markup structure
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );//* Add viewport meta tag for mobile browsers
add_theme_support( 'genesis-responsive-viewport' );//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 1 );//* Reposition the primary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_content_sidebar_wrap', 'genesis_do_nav' );//* Reposition the secondary navigation menu
remove_action( 'genesis_after_header', 'genesis_do_subnav' );
add_action( 'genesis_footer', 'genesis_do_subnav', 7 );//* Reduce the secondary navigation menu to one level depth
add_filter( 'wp_nav_menu_args', 'parallax_secondary_menu_args' );
function parallax_secondary_menu_args( $args ){if( 'secondary' != $args['theme_location'] )
return $args;$args['depth'] = 1;
return $args;}
//* Unregister layout settings
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-content-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );//* Add support for additional color styles
add_theme_support( 'genesis-style-selector', array(
'parallax-pro-blue' => __( 'Parallax Pro Blue', 'parallax' ),
'parallax-pro-green' => __( 'Parallax Pro Green', 'parallax' ),
'parallax-pro-orange' => __( 'Parallax Pro Orange', 'parallax' ),
'parallax-pro-pink' => __( 'Parallax Pro Pink', 'parallax' ),
) );//* Unregister secondary sidebar
unregister_sidebar( 'sidebar-alt' );//* Add support for custom header
add_theme_support( 'custom-header', array(
'width' => 360,
'height' => 70,
'header-selector' => '.site-title a',
'header-text' => false,
) );//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'footer-widgets',
'footer',
) );//* Hook after post widget after the entry content
add_action( 'genesis_after_entry', 'parallax_after_entry', 5 );
function parallax_after_entry() {if ( is_singular( 'post' ) )
genesis_widget_area( 'after-entry', array(
'before' => '<div class="after-entry widget-area">',
'after' => '</div>',
) );}
//* Modify the size of the Gravatar in the author box
add_filter( 'genesis_author_box_gravatar_size', 'parallax_author_box_gravatar' );
function parallax_author_box_gravatar( $size ) {return 176;
}
//* Modify the size of the Gravatar in the entry comments
add_filter( 'genesis_comment_list_args', 'parallax_comments_gravatar' );
function parallax_comments_gravatar( $args ) {$args['avatar_size'] = 120;
return $args;
}
//* Register widget areas
genesis_register_sidebar( array(
'id' => 'home-section-1',
'name' => __( 'Home Section 1', 'parallax' ),
'description' => __( 'This is the home section 1 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-2',
'name' => __( 'Home Section 2', 'parallax' ),
'description' => __( 'This is the home section 2 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-3',
'name' => __( 'Home Section 3', 'parallax' ),
'description' => __( 'This is the home section 3 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-4',
'name' => __( 'Home Section 4', 'parallax' ),
'description' => __( 'This is the home section 4 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-5',
'name' => __( 'Home Section 5', 'parallax' ),
'description' => __( 'This is the home section 5 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'after-entry',
'name' => __( 'After Entry', 'parallax' ),
'description' => __( 'This is the after entry widget area.', 'parallax' ),
) );//* Dan's Own Customization so Easy Contact Forms Works on Website front Page
add_filter('widget_text', 'do_shortcode');
//* Dan's Own Customization that displays a right sidebar on the front page of the website
genesis_register_sidebar( array(
'id' => 'new-widget',
'name' => __( 'New Widget', 'domain' ),
'description' => __( 'Add Content Here', 'domain' ),
) );add_action( 'genesis_sidebar', 'your_widget' );
function your_widget() {
if ( is_front_page() && is_active_sidebar('new-widget') ) {
genesis_widget_area( 'new-widget', array(
'before' => '<div class="new-widget widget-area">',
'after' => '</div>',
) );}
}
September 29, 2016 at 2:05 pm #193914wadams92101MemberHi Brad. Thanks for the link. Can the snippet in the tutorial be added to the Genesis Simple Hooks plugin field rather than directly into the functions.php file? I would think it could but then again, why would the author of a genesis tutorial not mention it if that was the case? Also, which hook, if any, could be used to put a logo to the left of the header title?
September 30, 2016 at 1:55 am #193927Brad DaltonParticipantHi. No because it already includes the hook you can change. No need to use Simple Hooks.
September 30, 2016 at 3:16 am #193935Brad DaltonParticipantOctober 1, 2016 at 10:01 am #194070wadams92101MemberI prefer to use Simple Hooks or a custom php plugin because it makes the modifications more resilient child theme small version upgrades. For example, as soon as I started modifying News Pro 3.0, version 3.02 came out. But from what I can see, Simple Hooks doesn't contain the hook needed for this? I just found a plugin called Custom Functions, so I could try that but would prefer to use Simple Hooks first if possible.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.