Forum Replies Created
-
AuthorPosts
-
jstuartjMember
I would highly recommend two books, they are very accessible for someone with some programming background.
Professional WordPress: Design and Development - 3 edition
by Brad Williams (Author), David Damstra (Author), Hal Stern (Author)Professional WordPress Plugin Development
by Brad Williams (Author), Ozh Richard (Author), Justin Tadlock (Author)As for learning PHP, any basic online resource will do. The PHP required for theme development if fairly basic. I would start with functional PHP and then move to object oriented PHP as you move towards plugin development or advanced themes with control panels.
Otherwise learn to use the WordPress Codex, much of what you need is there with a little tweaking.
James
jstuartjMemberI needed something similar. I didn't care for the 6 widget layout and wanted it to be ( 1 over 5). The widget layout is driven mostly though by CSS and the altitude_widget_ares_css() function in the function.php.
What I did was add a filter to the output of the function, so I could override the CSS manually as I'm using the theme on several sites that need custom layouts.
function altitude_widget_area_class( $id) { $count = altitude_count_widgets( $id ); $class = ''; if( $count == 1 ) { $class .= ' widget-full'; } elseif( $count % 3 == 1 ) { $class .= ' widget-thirds'; } elseif( $count % 4 == 1 ) { $class .= ' widget-fourths'; } elseif( $count % 2 == 0 ) { $class .= ' widget-halves uneven'; } else { $class .= ' widget-halves'; } //* Allows Overriding widget area class. $class = apply_filters('widget_area_class', $class, $id, $count); return $class; }
Then I added a filter to the front-page.php
//* Custom front page widget layout handling for 6 widgets. add_filter ('widget_area_class', 'jsj_five_widget_area',5,3); function jsj_five_widget_area($class, $id, $count) { //* limit to a specific front page section and only if there are 6 widgets. if (($id === "front-page-2") && ($count == 6)) { //* Don't forget to add a space to separate the existing classes. $class = " widget-fifths"; } return $class; }
Then I added some CSS to my styles.css to handle the widget-fifths.
.flexible-widgets.widget-fifths .widget { width: 17.333333%; } .flexible-widgets.widget-halves .widget:nth-child(even), .flexible-widgets.widget-thirds .widget:nth-child(3n+2), .flexible-widgets.widget-fourths .widget:nth-child(4n+2) .flexible-widgets.widget-fifths .widget:nth-child(5n+2) { clear: left; margin-left: 0; }
It might need some tweaking, I'm still working on my site.
Hope this helps - make a backup before you try it.
jstuartjMemberWell I did a CSS work around, I needed to apply my web font to the .site-title and .site-description as well as the h1 and h2 tags that way my styles are still applied to all my headers and site title and description regardless what WordPress SEO changes.
I don't like the face that WordPress SEO is rewriting the <header> and not allow me turn it off.
jstuartjMemberI'm having the same issue with the WP 4.0, Latest WordPress SEO and up to date Genesis & Minimum Pro.
It appears to be rewriting the [ site-description on the home page ] and the [site-title and site-description on single pages] to paragraph tags for some reason.
Haven't found a solution yet.
jstuartjMemberLooks like something is changing single quotes to curly quote when I copy and pasted to the form... to my editor, you might check that, it happened in WeBuilder 2014 but note Notepad++. Let me try again in code tags maybe that will help.
Is there a way to edit posts? I would like to fix the above but I'm not finding away.
add_action('wp_enqueue_scripts', 'bugfix_add_jquery_migrate'); function bugfix_add_jquery_migrate() { if (!is_admin()) { wp_register_script( 'jquery-migrate', get_stylesheet_directory_uri() . '/js/jquery-migrate-1.0.0.min.js',array('jquery')); wp_enqueue_script( 'jquery-migrate'); } }
jstuartjMemberIt appears something in your theme or a plug-in is en-queuing jQuery 1.9 - which no-longer supports $. browser, so the superfish.js fails and breaks fancy menus. An explanation and how I fixed my problem is here.
http://www.studiopress.community/topic/superfish-broken-with-jquery-1-9
If you check with Chrome dev-tools you'll see an error triggers on superfish.js , then check the resources tab and see what version of jQuery is used if it's 1.9+ you will likly need to add the new jQuery Migrate plugin to your theme or stop using whatever plug-in is triggering the latest version of jQuery to enqueue.
jstuartjMemberI appear to be have a similar issue, only it's a page with a custom page template - where I have the grid loop pulling posts from a category using "category_name". It worked in 1.8, but now I get just the standard loop. the if (( genesis_grid_loop is)) as resolving as true, and my echo executes.
I am also seeing problem with the_content(), I'm calling it at the top of the page template. I had to use $myHome = get_page($post_id); and $myHome->post_content; instead.
Here is what I'm using for my grid loop, which no longer works under 1.0
remove_action( 'genesis_loop', 'genesis_do_loop');
add_action( 'genesis_loop', 'child_grid_loop_helper');
if ( function_exists( 'genesis_grid_loop' ) ) {
echo '<h2'>Test Content</h2>';
genesis_grid_loop( array(
'features' => 1,
'feature_image_size' => 0,
'feature_image_class' => 'aligncenter post-image',
'feature_content_limit' => 0,
'grid_image_size' => 'grid',
'grid_image_class' => 'alignleft post-image',
'grid_content_limit' => 100,
'more' => __( 'Continue reading...', 'genesis' ),
'posts_per_page' => 3,
'category_name' => 'parent-category-iii',
) );
} else {
genesis_standard_loop();
} -
AuthorPosts