Forum Replies Created
-
AuthorPosts
-
MissKittyMember
Hi Agnes -
I love your site! How did you get the full-width areas below the header and above the footer?MissKittyMemberHi everyone! Any updates to this thread? I need inspiration for a cool jazz musician and I like this theme (but need a dark background structure).
Thanks in advance.MissKittyMemberHello - I just installed 2.2.5 and the issue is fixed for me.
June 1, 2014 at 11:36 am in reply to: Metro Pro: nav menu displays as vertical list in IE; full-width home responsive? #107763MissKittyMemberThank you, Emasi...unfortunately, the nav is still not displaying in IE versions other than IE version 11.
Any feedback?As for the responsive settings, I'll try your suggestions. Thank you!
MissKittyMemberBraddalton, any update on the code?
Thanks in advance....MissKittyMemberThank you.
MissKittyMemberI'm sorry Brad! (btw, breaking code is my unintended specialty 🙂
here's the link:
home page...
http://bit.ly/1vAFXrI
interior...
http://bit.ly/1jRWY77I did try your code from this page:
http://wpsites.net/web-design/remove-footer-specific-pages/add_action( 'genesis_before', 'wpsites_display_footer_front_page' ); function wpsites_display_footer_front_page() { if( !is_front_page() ) { remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' ); }}
to no avail. What the heck am I doing wrong?
MissKittyMemberOk, I'm back again....
Still struggling w/ getting 3 widget areas along bottom outside of .site-container div.My first choice would be to move home_bottom widgets to genesis_before_footer.
However, I cannot figure out how to code the phpMy second choice would be to register a new widget (which I did),
and then hook it to genesis_before_footer, conditionally programming it to display only on the home page.
However, whenever I try second step (hooking to genesis_before_footer, and conditionally on home page) it breaks the site.
For this option, this is what I've added to my functions.php file:genesis_register_sidebar( array( 'id' => 'home-three', 'name' => __( 'Home Three', 'metro' ), 'description' => __( 'This is section for 3 areas on Home page', 'metro' ), ) ); //* Hook Home Three widget area before footer on home page add_action( 'genesis_before_footer', 'home-three' ); function home-three() { if ( is_front_page() ) genesis_widget_area( 'home-three', array( 'before' => '<div class="home-three widget-area">', 'after' => '</div>', ) ); }
My last and least desired option is to show 3-column widgets on home page only.
And I truly cannot figure that out.Please help 🙂
MissKittyMemberOk, thanks so much, Andrea! I'll try the first option and then the second one.
You're the best 🙂MissKittyMemberThank you. That was my concern 🙂
Would it be feasible to reposition the home_bottom widget to genesis_before_footer area?
MissKittyMemberHi again,
Ok, I was easily able to get the 3 widgets to display horizontally using column classes.My other issue, however, is that these 3 widgets are only to display on the home page, and the background is different than the curved background.
The rendering we are working from has a main area at the top w/ just image and text, from top of header to bottom of Home Top, with a semi-transparent background with curved corners.
Then a gap.
Then the 3 widgets w/ a different transparency, also curved corners.
Currently, I have:
.site-container { /* background-color: #fff;*/ margin: 32px auto; max-width: 1140px; overflow: hidden; padding: 36px; /*added jlr 5-16-14*/ background:#f7f7f7; background:rgba(255,255,255,0.3) } which applies the semi-transparent background to the entire space.... so, using the metro theme "as is" I cannot figure out (or if it's even possible) to achieve what we have in the rendering. Would it be more optimum to: 1. choose a different theme? 2. use the 3 widgets as footer widgets and disable them on all non-home pages?
MissKittyMemberThanks Andrea, I'll give it a go.
May 30, 2013 at 7:17 pm in reply to: Crave theme – yes, a Community theme but editing functions.php crashes site #43283MissKittyMemberThank you, Braddalton - that doesn't seem to be the case.
Even when I replaced the native php file, the issue persisted, so I've abandoned this theme and moved on. FWIW, here's the native php file content:
<?php
/**
* Custom amendments for the theme.
*
* @category Crave
* @package Functions
* @subpackage Functions
* @author Jessica Barnard
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
* @link http://thepixelista.com/themes/crave/
* @since 1.0.0
*
*/add_action( 'genesis_setup', 'crave_theme_setup', 15 );
/**
* Theme Setup
* @since 1.0.0
* @link https://github.com/surefirewebserv/Genesis-Sandbox/blob/Empty-Sandbox/functions.php
* @link https://github.com/billerickson/BE-Genesis-Child/blob/master/functions.php
*
* This setup function attaches all of the site-wide functions
* to the correct hooks and filters. All the functions themselves
* are defined below this setup function.
*/
function crave_theme_setup() {/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', __( 'Crave Theme', 'crave' ) );
define( 'CHILD_THEME_VERSION', '1.0.1' );
define( 'CHILD_THEME_URL', 'http://thepixelista.com/themes/crave' );
define( 'CHILD_THEME_DEVELOPER', __( 'The Pixelista', 'crave' ) );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'sample_viewport_meta_tag' );/** Set content width */
$content_width = apply_filters( 'content_width', 610, 610, 980 );/** Add Images Sizes */
add_image_size( 'featured-x-large', 1000, 669, TRUE );
add_image_size( 'featured-large', 650, 435, TRUE );
add_image_size( 'featured-medium', 295, 196, TRUE );
add_image_size( 'featured-small', 190, 127, TRUE );/**
* Add Style Selector
*/
add_theme_support(
'genesis-style-selector',
array(
'crave-citrus' => __( 'Citrus', 'crave' ),
'crave-berry' => __( 'Berry', 'crave' ),
)
);/** Structural Wraps */
add_theme_support(
'genesis-structural-wraps',
array(
'header',
'nav',
'subnav',
'inner',
'footer-widgets',
'footer',
)
);/** Layouts */
genesis_set_default_layout( 'content-sidebar' );
foreach ( array( 'content-sidebar-sidebar', 'sidebar-sidebar-content', 'sidebar-content-sidebar', ) as $layout )
genesis_unregister_layout( $layout );/** Genesis Menus */
add_theme_support( 'genesis-menus', array( 'primary' => 'Primary Navigation Menu' ) );remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );/** Sidebars */
unregister_sidebar( 'header-right' );
unregister_sidebar( 'sidebar-alt' );
crave_sidebars();/** Search Text */
add_filter( 'genesis_search_text', '__return_null' );/** Add Google Fonts: Rokkitt:700, Open+Sans:700,400, Sanchez:400,400italic */
add_action( 'wp_enqueue_scripts', 'crave_load_google_fonts' );/** Customize Read More */
add_filter( 'excerpt_more', 'crave_read_more_link' );
add_filter( 'get_the_content_more_link', 'crave_read_more_link' );
add_filter( 'the_content_more_link', 'crave_read_more_link' );/** Remove Back to top */
add_filter( 'genesis_footer_backtotop_text', '__return_null' );/** Customize Credits Footer Text */
add_filter( 'genesis_footer_creds_text', 'crave_footer_creds_text', 12 );/** Modify the size of the Gravatar in the author box */
add_filter( 'genesis_author_box_gravatar_size', 'crave_author_box_gravatar_size' );/** Modify the author box title */
add_filter( 'genesis_author_box_title', 'author_box_title' );
}/**
* Load Genesis
*
* This is technically not needed. However, to make functions.php snippet useful, it is necessary.
*/
require_once( get_template_directory() . '/lib/init.php' );/** All Done! Loaded! Happy editing! */
/*******************************************************************************//** Add Viewport meta tag for mobile browsers */
function sample_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Modify the size of the Gravatar in the author box */
function crave_author_box_gravatar_size( $size ) {
return 100;
}/** Modify the author box title */
function author_box_title() {
return '<h3>About the Author</h3>';
}/**
* Edit excerpt read more link
*
* @param string $more Read More Text, , default: ' ' . '[...]'
* @return string Modified Read More Text.
*/
function crave_read_more_link( $text ) {
return sprintf(
'… <span class="crave-read-more"><a href="%s" rel="nofollow">%s</a></span>',
get_permalink(),
__( ' [read more]', 'crave' )
);
}/**
* Registers sidebars for Crave theme.
*
* @since 1.0.0
*/
function crave_sidebars() {
genesis_register_sidebar(
array(
'id' => 'home-top',
'name' => __( 'Home Top', 'crave' ),
'description' => __( 'This is the home top section.', 'crave' ),
)
);
genesis_register_sidebar(
array(
'id' => 'home-middle',
'name' => __( 'Home Middle', 'crave' ),
'description' => __( 'This is the home middle section.', 'crave' ),
)
);
genesis_register_sidebar(
array(
'id' => 'home-bottom',
'name' => __( 'Home Bottom', 'crave' ),
'description' => __( 'This is the home bottom section.', 'crave' ),
)
);
}/**
* Customize the Credits Text
*
* @param string $creds_text Default Credits.
* @return string Modified Pixelista Credits.
*/
function crave_footer_creds_text( $creds_text ) {
return sprintf(
'[footer_copyright before="%s "] | [footer_childtheme_link before=""] %s <a href="http://thepixelista.com">%s</a> | %s [footer_genesis_link url="http://www.studiopress.com/" before=""]',
__( 'Copyright', 'crave' ),
__( 'by', 'crave' ),
CHILD_THEME_DEVELOPER,
__( 'Built on the ', 'crave' )
);}
/**
* Enqueue Google fonts
*/
function crave_load_google_fonts() {
wp_enqueue_style(
'crave-google-fonts',
'http://fonts.googleapis.com/css?family=Rokkitt:700|Open+Sans:700,400|Sanchez:400,400italic',
array(),
CHILD_THEME_VERSION
);
}MissKittyMemberHoly wow, that worked! You are a genius 🙂
Thank you Brian!
-
AuthorPosts