Forum Replies Created
-
AuthorPosts
-
sahdowParticipant
functions.php and you page can not use the same ids as the home page or it will load the widgets from the home page unless you use conditional logic.
Re-read the top of my last post
sahdowParticipantYou can't do that with the plugin (making an internal page that looks like the homepage). Sidebar is a term used by WordPress for all widgeted areas even if they are in the footer.
Using the information on the page Sozu referenced, specifically "Register Your Sidebar" , the easiest way to do it is.
Copy content of home into custom page template, copy widgetet areas from functions and paste into fucntions.
Change the ID and Name in the "register your sidebar code" so it is unique;
Easiest way would be to simply change id from home to page (ie page-slider, page-top, page-cta, page-middle)
Note bolded areas - also, you will hoave to make any necessary CSS modifications once you get the widgets working
/** Register widget areas **/
genesis_register_sidebar( array(
'id' => 'home-slider',
'name' => __( 'Home - Slider', 'executive' ),
'description' => __( 'This is the slider section on the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'executive' ),
'description' => __( 'This is the top section of the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => 'home-cta',
'name' => __( 'Home - Call To Action', 'executive' ),
'description' => __( 'This is the call to action section on the home page.', 'executive' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle',
'name' => __( 'Home - Middle', 'executive' ),
'description' => __( 'This is the middle section of the home page.', 'executive' ),
) );change the id in the code of the custom page template to match the same changes.
<!--?php /**
* This file adds the custom template to the Executive Child Theme.
*
* @author StudioPress
* @package Generate
* @subpackage Customizations
*//*
Template Name: Custom
*/function executive_home_genesis_meta() {
if ( is_active_sidebar( 'home-slider' ) || is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-cta' ) || is_active_sidebar( 'home-middle' ) ) {
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'executive_home_sections' );
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_filter( 'body_class', 'executive_body_class' );
add_action( 'genesis_after', 'executive_slider_excerpt_position' );/** Add body class to home page **/
function executive_body_class( $classes ) {
$classes[] = 'executive-home';
return $classes;
}/** Moves the slider pager if the sidebars are active and the screen is wide enough */
function executive_slider_excerpt_position() {
?>
<script type="text/javascript">
jQuery(document).ready(function() {
if (jQuery(".slide-excerpt").length > 0) {
jQuery(".flex-control-nav").addClass("nav-pos-excerpt");
}
});
</script>
<!--?php }
}
}function executive_home_sections() {
if ( is_active_sidebar( 'home-slider' ) || is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-cta' ) || is_active_sidebar( 'home-middle' ) ) {
genesis_widget_area( 'home-slider', array(
'before' => '<div class="home-slider widget-area">',
) );genesis_widget_area( 'home-top', array(
'before' => '<div class="home-top widget-area">',
) );genesis_widget_area( 'home-cta', array(
'before' => '<div class="home-cta widget-area">',
) );genesis_widget_area( 'home-middle', array(
'before' => '<div class="home-middle widget-area">',
) );}
}
genesis();
sahdowParticipantWell based on what I saw, any OS using Ie ( Vista, Windows 7 &, Windows 8) looks good. It's compatibility mode where the issues crop up.If you or the client need it to display better for IE 8 or older, focus on ie css that impacts margin and padding.
sahdowParticipantDepending on your theme, you can apply the slider based on it' developer's instructions.
Based on what I viewed in the install instructions for the slider mentioned above, you can either edit home.php to add a new segment (ID) above the existing widgets and below the navigation or use the built in widgets of the theme's home page in conjunction with php widget and the plugins settings page.
sahdowParticipantFirst, can you supply a link to the site?
Now here's the thing about IE - MS refuses to accept that they aren't back in the 90's and no longer dominate the development of technology; with that said, I still pay attention to IE.
Here's the problem - you need to look at the version of IE you are using (pay attention to MS supporting that version) because MS isn't even standard between it's own versions (9 is almost usable, 8 , 7 are ok, 6 forget about it - no ROI on the conversion Time X Cost) . Long and short of it is this. Which version of IE and is it a supported browser (example IE 9 isn't available on XP). If you want to support older versions, best solution is to custom code a style sheet just for ie (also pay attention to compatability view vs regular view).
If you are using IE 9, search on css for IE 9 and you will find some items aren't supported that are in all other major browsers.
BTW just so you know, I hate MACs, did tech support for them for over a decade and user friendly is only as good as the user - A.K.A. my response isn't anti MS.
sahdowParticipantI haven't played with forums in a while, but integration isn't a "Genesis" issue so much as a WordPress - BBPress issue.
sahdowParticipantThanks for the response Nick, my next question was if you were using BBPress - but you answered that already..
sahdowParticipantI pretty much always use the same themes, so not positive on this one but..
Try adding bottom margin or clear to #home h4 or #home "widget class" h4
widget class where widget is the name of the home left (varies from theme to theme)
sahdowParticipantDecrease #content width in teh CSS by the amount you increase #content padding width
Meant margin not padding there, but no edit link so I couldn't remove from earlier post
sahdowParticipantDecrease #content width in teh CSS by the amount you increase #content padding width. Or you could just reduce content width as the float is set to left.
Example:
#content {
float: left;
padding: 10px 0 20px;
width: 420px;
}Possible Change:
#content {
float: left;
padding: 10px 10px 20px 0;
width: 410px;
}sahdowParticipantRemove from home.php and first widget from functions.php
You need to adjust alignment of your post image, try adding a top-margin to your .attachment-thumbnail class
sahdowParticipantFailure to remove brackets will most likely result in a fatal error
/** Add custom field above post title */
add_action( 'genesis_before_post_title', 'luscious_post_image', 8 );
function luscious_post_image() {if ( is_page() )
return;if ( $image = genesis_get_image( 'format=url&size=post-photo' ) ) {
printf( '<a href="%s" rel="bookmark"><img class="post-photo" src="%s" alt="%s" /></a>', get_permalink(), $image, the_title_attribute( 'echo=0' ) );
}}
sahdowParticipantI believe that's what you want to remove. Instead of commenting it out, try cutting it. Just make certain to get the entire snippet.
All ( and { will be paired with their opposites.
sahdowParticipantDid you fix? Looks ok to me, unless I'm not understanding the description of what isn't working.
unless you are talking about the Kohls advert ?
sahdowParticipantNovember 23, 2012 at 7:43 pm in reply to: Need Trade Show Booth Registration / Purchase Form / Taking money #1443sahdowParticipantFor the PayPal stuff, I think you need to get the plugin (included free in your GF license), but once you play with Gravity Forms, you will ask yourself why you ever tried forms with WP any other way - one of the few times you will run across truth in advertising with point and click.
November 23, 2012 at 3:18 pm in reply to: When to use forums -vs- when to use support request? #1406sahdowParticipantI'm kinda hoping the development team won't rush to shut down the old forums for that very reason. Until the new forums really get going, there are a lot of answers that can be found in the old forums (for example: Yesterday I used a link from the old forums to answer a question in the new forums - because the answer was already written out).
sahdowParticipantThe clients always right when it comes to the design of their website, even if it turns your stomach 🙂
sahdowParticipantGo back to nicks site and copy the clean code again, make certain you copy the entire block and aren't cutting anything off. Also make certain when pasting into functions you aren't breaking any existing elements.
Paste into notepad or simple text to ensure your code is clean
sahdowParticipantIE 9 is the first version to support border-radius, so if in IE8 or compatibility mode expect squared edges. Also, expect a lot of extra work for anything in compatibility mode. My rule of thumb is that if Microsoft no longer supports it, i don't code for it.
You may also want top proof in Google Chrome and Apple Safari - both are webkit, but display slightly different in some cases.
Each site is unique, but this data from W3 Schools can be helpful.
-
AuthorPosts