Forum Replies Created
-
AuthorPosts
-
johnstrubelMember
That worked. Thanks, Christoph.
johnstrubelMemberThanks, Christoph.
I see the code. When I changed the display setting to "inline" the page displays the menu option.
Prior to the nav disappearing it was displaying across the top.
Is there additional code I need to change the display?
johnstrubelMemberThanks, Jackie.
This is strange. I checked the code and it is consistent with the sample above.
I have not added any new plugins or adjusted the code.
Any other suggestions?
Appreciate your help ... John
johnstrubelMemberThe featured images might looked distorted unless you already had them sized to 372x132. If so, just resize the images. A little tedious, I know, but it will look clean and sharp in the end.
johnstrubelMemberClick on "appearance" > "editor" > "functions.php"
Scroll down until you see this code:
}
//* Add new featured image size
add_image_size( 'grid-featured', 372, 132, TRUE );Replace the image size from 270, 100 to 372, 132
Does that help?
John
johnstrubelMember1. How do I get the Featured Image to show up on the top post of the home page.
http://sridharkatakam.com/add-image-header-eleven40-pro/
2. On the post excerpts that follow the initial post, my thumbnails are only 270px wide (270 x 100), unlike John’s blog which shows 372?—132 images.
http://sridharkatakam.com/set-default-image-genesis-featured-posts-widget/
3. Also love how the single posts his featured images go between the header and the footer, as wide as the page. How is that done?
I use the Genesis Featured Images Extended plugin: https://wordpress.org/plugins/genesis-minimum-images-extended/
Maybe these are custom changes and not part of the theme settings. If so, if John is reading this and would not mind sharing…would be much appreciated.
Note: I have the site set up in “Reading” options to show “Your latest posts” as the set up instructions suggest.
If I can help in any other way, let me know.
John Strubel
johnstrubelMemberPerfect! That did it. THANK YOU so much, Christoph.
johnstrubelMemberHi Christoph:
Thanks for your help.
I can’t get the image to display on the featured homepage post using Elven40 Pro. I can see it it the admin panel and it displays on the single post, but not on the homepage.
You can see the page here: http://www.johnstrubel.com
One other quick question: Can anyone point me to a tutorial for adding social media icons to the top navigation?
Thanks in advance for any help.
Sincerely,
John
johnstrubelMemberHi Christoph:
Thanks so much for the help. I was able to get the icon to load, but two things:
1. It resizes the image to 32px instead of 96px
2. The icon loads on a second lineI have left this on the site so you can see a visual of what I am talking about: http://www.johnstrubel.com.
Note: I did change the width size from 25% to 20%
Any additional help would be greatly appreciated.
Sincerely,
John
johnstrubelMemberThanks, Brad. Unfortunately these are not what I was looking for.
johnstrubelMemberHi Brad:
Thanks again! Here is an update: My page-title.php file looks like ...
<?php
if ( is_home() ) {
echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_404() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Ooops!', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_post_type_archive( 'portfolio' ) || is_singular( 'portfolio') ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the Portfolio', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_singular( 'page' ) ) {
echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'blog' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'From the Blog', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'print-bylines' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Print Bylines', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'audio' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Voices Podcast', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'sports-journalism' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Sports Journalism', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
elseif ( is_author() || is_category() && !is_category( 'video' ) || is_date() || is_search() || is_singular() || is_tag() ) {
echo '<div id="page-title"><div class="wrap"><p>' . __( 'Video', 'minimum' ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}
else {
echo '<div id="page-title"><div class="wrap"><p>' . esc_html( get_bloginfo( 'description' ) ) . '' . __( 'Subscribe Now', 'minimum' ) . '</p></div></div>';
}The problem is, when you click on the categories -- blog, print bylines, podcast -- from the top of the homepage, the titles are displaying on the wrong pages. Any thoughts?
To clarify on the image request, I can add a static image at the top of my "pages" ( i.e. -- http://johnstrubel.com/about-me/ or http://johnstrubel.com/contact/). I'd like to be able to do this for the categories too (i.e. -- http://johnstrubel.com/category/blog/, http://johnstrubel.com/category/print-bylines/ and http://johnstrubel.com/category/audio/). Does that make sense?
Any help would be greatly appreciated!
Sincerely,
John
johnstrubelMemberHi Brad:
I may have been working on a solution at the time. Can you take a look again?
Thanks for your help.
John
johnstrubelMemberHi John:
I did have eleven40 installed prior to switching to Minimum. Should I reinstall the Genesis parent them completely?
I have deleted all the inactive plugins, those that weren't being used and the plugin directory that was located inside the theme folder (I am at a loss why that was there too). I also deleted all the old themes.
Still, the link does not work. I will pursue the host and see what I can find out. Thanks for your help.
John
johnstrubelMemberJohn:
I put the access info in your dropbox. You can use it to access via FTP or login through the browser and look at WordPress.
I really appreciate you going the extra mile to try and help!
Sincerely,
John
johnstrubelMemberHi John:
No cache plugin and, no, I didn't use a subdomain to develop. I loaded the theme -- both Genesis and child theme (Minimum) to the root folder when designing.
No, I even checked Jetpack, which is installed through WordPress, but nothing is active that would interfere.
This is so odd. I've never had this type of error before.
John
johnstrubelMemberHi John:
Not a silly question at all. Here are the folder locations:
The "functions.php" file is loaded to: /wp-content/themes/minimum
The "featured-image.jpg" file is loaded to: /wp-content/themes/minimum/images
John
johnstrubelMemberHi John:
Well, I walked through the steps and the file is still displaying as "sample.jpg" with no hyperlink.
I use Ipswitch FTP software. I checked the setting and transfers and, yes, it is set to binary.
John
johnstrubelMemberApologies ... I sent you the Genesis functions.php file first. I've uploaded the child theme functions.php file.
johnstrubelMemberOK. It's in the dropbox
johnstrubelMemberHi John:
Yes. I have been able to make other updates to the file, that's what's confusing. Here is the code to the entire file:
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );/** Set Localization (do not remove) */
load_child_theme_textdomain( 'minimum', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'minimum' ) );/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', __( 'Minimum Theme', 'minimum' ) );
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/minimum' );/** Load Google fonts */
add_action( 'wp_enqueue_scripts', 'minimum_load_google_fonts' );
function minimum_load_google_fonts() {
wp_enqueue_style(
'google-fonts',
'http://fonts.googleapis.com/css?family=Open+Sans:400,700',
array(),
PARENT_THEME_VERSION
);
}/** Sets Content Width */
$content_width = apply_filters( 'content_width', 740, 740, 1140 );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'minimum_add_viewport_meta_tag' );
function minimum_add_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Add new image sizes */
add_image_size( 'header', 1600, 9999, TRUE );
add_image_size( 'portfolio', 330, 230, TRUE );/** Add support for custom background */
add_theme_support( 'custom-background' );/** Add support for custom header */
add_theme_support( 'genesis-custom-header', array(
'width' => 1140,
'height' => 100
) );/** Remove Site Tag Line **/
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );/** Unregister layout settings */
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-content-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );/** Unregister secondary sidebar */
unregister_sidebar( 'sidebar-alt' );/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'inner',
'footer-widgets',
'footer'
) );/** Add the featured image section */
add_action( 'genesis_after_header', 'minimum_featured_image' );
function minimum_featured_image() {
if ( is_home() ) {
echo '<div id="featured-image"></div>';
}
elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
echo '<div id="featured-image">';
echo get_the_post_thumbnail($thumbnail->ID, 'header');
echo '</div>';
}
}/** Add the page title section */
add_action( 'genesis_after_header', 'minimum_page_title' );
function minimum_page_title() {
require_once( get_stylesheet_directory() . '/page-title.php' );
}/** Customize the post info function */
add_filter( 'genesis_post_info', 'post_info_filter' );
function post_info_filter( $post_info ) {
if ( !is_page() ) {
$post_info = __( 'Posted on', 'minimum' ) . ' [post_date] // [post_comments] [post_edit]';
return $post_info;
}}/** Customize the post meta function */
add_filter( 'genesis_post_meta', 'post_meta_filter' );
function post_meta_filter( $post_meta ) {
if ( !is_page() ) {
$post_meta = '[post_categories before="' . __( 'Filed Under: ', 'minimum' ) . '"] // [post_tags before="' . __( 'Tagged: ', 'minimum' ) . '"]';
return $post_meta;
}}/** Modify the size of the Gravatar in the author box */
add_filter( 'genesis_author_box_gravatar_size', 'minimum_author_box_gravatar_size' );
function minimum_author_box_gravatar_size( $size ) {
return '96';
}/** Add support for 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );/** Add custom footer if widget area is used */
add_action( 'genesis_footer', 'minimum_custom_footer', 6 );
function minimum_custom_footer() {if ( is_active_sidebar( 'custom-footer' ) ) {
remove_action( 'genesis_footer', 'genesis_do_footer' );
echo '<div class="custom-footer">';
dynamic_sidebar( 'custom-footer' );
echo '</div><!-- end .custom-footer -->';}
}/** Create portfolio custom post type */
add_action( 'init', 'minimum_portfolio_post_type' );
function minimum_portfolio_post_type() {
register_post_type( 'portfolio',
array(
'labels' => array(
'name' => __( 'Portfolio', 'minimum' ),
'singular_name' => __( 'Portfolio', 'minimum' ),
),
'exclude_from_search' => true,
'has_archive' => true,
'hierarchical' => true,
'menu_icon' => get_stylesheet_directory_uri() . '/images/icons/portfolio.png',
'public' => true,
'rewrite' => array( 'slug' => 'portfolio' ),
'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'page-attributes', 'genesis-seo' ),
)
);
}/** Change the number of portfolio items to be displayed (props Bill Erickson) */
add_action( 'pre_get_posts', 'minimum_portfolio_items' );
function minimum_portfolio_items( $query ) {if( $query->is_main_query() && !is_admin() && is_post_type_archive( 'portfolio' ) ) {
$query->set( 'posts_per_page', '12' );
}}
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'home-featured-1',
'name' => __( 'Home Featured #1', 'minimum' ),
'description' => __( 'This is the home featured #1 section.', 'minimum' ),
) );
genesis_register_sidebar( array(
'id' => 'home-featured-2',
'name' => __( 'Home Featured #2', 'minimum' ),
'description' => __( 'This is the home featured #2 section.', 'minimum' ),
) );
genesis_register_sidebar( array(
'id' => 'home-featured-3',
'name' => __( 'Home Featured #3', 'minimum' ),
'description' => __( 'This is the home featured #3 section.', 'minimum' ),
) );
genesis_register_sidebar( array(
'id' => 'home-featured-4',
'name' => __( 'Home Featured #4', 'minimum' ),
'description' => __( 'This is the home featured #4 section.', 'minimum' ),
) );
genesis_register_sidebar( array(
'id' => 'custom-footer',
'name' => __( 'Custom Footer', 'minimum' ),
'description' => __( 'This is the custom footer section.', 'minimum' ),
) );Does anything look out of place to you?
Thanks for all your help!
John
-
AuthorPosts