Forum Replies Created
-
AuthorPosts
-
Tomas RisbergMember
I guess this is very basic for most of you, but I haven't got knowlede enough to solve this problem. Is there anyone here that can learn me how to analyze why my site isn't rendering at all in Genesis Mobile Responsive Design Testing:
Tomas RisbergMemberThanks for helping. I realize this problem with the particular page might be the top of an iceberg: It's not only that page that doesn't render in the Studio Press responsive test page. It's the whole site. I disabled the Autoptimize plug-in. It didn't solve the problem, but it made my site load faster! I understand I will have to check my JavaScripts.
Regards,
Tomas
silent.seSeptember 8, 2014 at 9:49 am in reply to: normalize.css – reason for not using latest version? #123392Tomas RisbergMemberI have recieved the following answers from StudioPress/CopyBlogger Media:
The latest version of normalize.css has not been tested with the Minimum Pro theme.
They do not plan on moving normalize out of the main style.css as that would add another http request. Reducing HTTP requests improve front-end performance.
August 23, 2014 at 2:56 pm in reply to: normalize.css – reason for not using latest version? #120655Tomas RisbergMemberOk. Thanks. I will try with Studiopress.
August 17, 2014 at 9:11 am in reply to: Pagination without the word 'Pages:' – code for the child theme? #119361Tomas RisbergMemberBrad, I'm sorry. I understand that the error must be mine. I know you are one of the most skilled Genesis experts.
I can not find a way solve the problem. I tried to use the your code in the Minimum Pro, which should be true html5, but I can't make that work either.
At this page:
http://www.htpcbeginner.com/add-and-style-post-pagination-in-genesis-themes/
they talk about replacing .pages with .entry-pagination.pagination for Genesis 2.0.2 (HTML5)
Does that have something with my problem to do?
August 17, 2014 at 3:47 am in reply to: Pagination without the word 'Pages:' – code for the child theme? #119332Tomas RisbergMemberUpdate: I have been able to make the pagination visible again by exchanging 'genesis_entry_header' with 'genesis_after_content' in your suggested php code, but except of this Genesis/WP doesn't seem to use neither your provided code for the functions.php nor the code for the style.css file.
August 16, 2014 at 3:28 pm in reply to: Pagination without the word 'Pages:' – code for the child theme? #119271Tomas RisbergMemberBrad, thanks for taking your time, and excuse me: I have tried to add your php code to the functions.php and the css to style.css but now no pagination at all shows.
I'm running the original Minimum theme, but it is html5 converted. Does it have anything to do with that?
Tomas RisbergMemberThe problem was solved by janet4now in the css combat forum @ css.tricks.com
This was the solution:
.entry-content p {
max-width: 665px;
margin: 0 auto 30px;
}Tomas RisbergMemberThank you so much!!
I had forgotten about the breadcrumbs code that I added to the theme but didn't use.
March 30, 2014 at 10:38 pm in reply to: How to remove the original Minimum theme tagline area? #97563Tomas RisbergMemberThanks. I will look in to it.
March 30, 2014 at 2:12 am in reply to: How to remove the original Minimum theme tagline area? #97391Tomas RisbergMemberThanks! This did the job.
Now I wonder. I'm not sure yet, but If I would like to keep the tagline area only at the first page, can the code above be used only for that one?
March 29, 2014 at 9:16 am in reply to: How to remove the original Minimum theme tagline area? #97269Tomas RisbergMemberThanks for taking your time. There is no front-page.php
These are the files found in the editor:
archive-portfolio.php
functions.php
home.php
page-title.php
page_landing.php
single-portfolio.php
style.cssHere is the functions.php
<?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' ),
) );//* Load custom favicon
add_filter( 'genesis_pre_load_favicon', 'custom_favicon_filter' );
function custom_favicon_filter( $favicon_url ) {
return 'http://silent.se/wp-content/images/favicon.ico';}
I also must inform you that I do the modifications first in my experimental site:
March 29, 2014 at 8:55 am in reply to: How to remove the original Minimum theme tagline area? #97261Tomas RisbergMemberThanks, but no. That is the code for the Minimum Pro. They seem to differ regarding the tagline area.
I can not even find the word tagline in the functions.php for the original "old" Minimum theme.
Tomas RisbergMemberThanks!
-
AuthorPosts