Forum Replies Created
-
AuthorPosts
-
JohnParticipant
Lisa,
Replace body with #content and I think you'll find it works. Gravity Forms tends to override any changes made in style.css, but adding an ID gives your change priority.
#content #gform_wrapper_1
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantThey are responsive.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantI wouldn't technically call it a gallery of pictures, but here's more info:
Each slide is a "custom post type" and they are all managed in a section called Slideshows.
Slides can be added to "Slide Groups" and then you can specify a different Slide Group for each instance of WooSlider on your site.
A slide's content can be just an image, an image linked to something else, an image and text, just text, and maybe other possibilities I haven't thought of yet.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantJen,
Right. I was assuming that the modified single.php would be in the child theme directory, but thanks for mentioning that.
RE the code posting frustration, I just started a thread in Forum Bugs and Suggestions with a possible solution. I know it's up to StudioPress to implement it, but more voices could help the cause.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantSince that code didn't paste very well I created a Gist where it should be rendered correctly:
https://gist.github.com/4286425
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantRob,
Here's how I would do that:
1. Put your custom template inside a function instead of in writing.php, and remove writing.php all together. In this example I'm calling that function writing_content_template
2. Add that new function to functions.php, or better yet, to a custom-functions plugin in your mu-plugins directory, which you can create in wp-content if it's not there already. The benefit of mu-plugins is that it stays with the site even if the theme changes.
3. In single.php add a conditional for that category that removes the post content and replaces it with your custom template. Something like this:
if( in_category ( 'writing' ) ) {
remove_action( 'genesis_post_content', 'genesis_do_post_content' );
add_action( 'genesis_post_content', 'writing_content_template' );
}I haven't tested this specifically with a category, but I have done something very similar with displaying different custom post types with different content templates. And by putting that template in a function you can call it wherever you need it, in multiple page templates, for example.
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantAnother vote for BackupBuddy. In my opinion you won't be disappointed.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantThanks for the example. If it were me doing this, I'd probably use WooSlider from WooThemes, and insert the slider/slideshow with a shortcode in the content area of that page.
Another option would be a plugin like Widgets on Pages that lets you insert widgets on posts or pages, and then you can use a slideshow plugin that you already have available. I haven't tried Widgets on Pages myself, but it seems to have an active community right now, and the plugin author is still actively supporting it, both of which are good signs.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantYou're welcome!
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantnwtech,
This is how I would do that: create a template file called "archive-[your-custom-post-type] and add the following code on that page:
// Customize the Loop
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'my_cpt__taxonomy_custom_loop');function my_cpt__taxonomy_custom_loop() {
global $paged;
global $query_args; // any wp_query() args
// Get term
$term = get_query_var( 'term' );
$args = array( 'order' => 'ASC',
'orderby' => 'title',
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'first-taxonomy',
'field' => 'slug',
'terms' => $term
),
array(
'taxonomy' => 'second-taxonomy',
'field' => 'slug',
'terms' => $term
),
array(
'taxonomy' => 'third-taxonomy',
'field' => 'slug',
'terms' => $term
)
),
'paged' => $paged
);
// Accepts WP_Query args (http://codex.wordpress.org/Class_Reference/WP_Query)
genesis_custom_loop( wp_parse_args( $query_args , $args ) );
} // End my_cpt__taxonomy_custom_loopLet me know if that works for you,
JohnEdit: the code editor is stripping out the angle brackets, so keep that in mind if you copy and paste the code.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantI've been using WooSlider from WooThemes in all my StudioPress/Genesis sites (that use a slider, anyway). I tried the Genesis sliders but I'd rather not have to create a post to make a slide.
WooSlider gives you lots of different options for placing it in your site, from template tags to shortcodes to widgets, and it's responsive.
It's not free, but it is good.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantYou're welcome!
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉December 13, 2012 at 8:48 pm in reply to: Please Help! Center the Menu options on the Nav. Bar #5134JohnParticipantCourtney,
Adding this to your style.css should do the trick:
.menu-primary {
text-align: center;
}
.menu-primary li {
display: inline-block;
float: none;
}John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantYour functions.php looks okay, but your home.php has an extra div from when you added the widget area. If you delete that line from the function adorable_home_loop_helper I think your sidebar will move up to where it's supposed to be. Here's the line you need to remove, assuming the code editor doesn't remove it from here:
echo '< div id=”featured-top-middle” >';
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉December 13, 2012 at 4:23 pm in reply to: CSS fix for Education theme dropdown menu issue (here's how) #5060JohnParticipantUpdate to Education theme dropdown menu issue CSS fix
I've been working more on the Education theme and noticed there were some things lacking in some of the CSS fixes I posted earlier.
1. All of the selectors in step 3 above can be replaced with one line, and as a bonus this takes care of nested menus as well. I tested it to three deep, but it should go as deep as you want to go. Here's the replacement code:
/* Dropdown Menu Corrections
------------------------------------------------------------ */
#wrap #header ul.sub-menu li a {
background: none;
border-bottom: 1px dotted #ddd;
color: #747474;
font-size: 14px;
padding: 9px 8px 8px;
position: relative;
text-transform: none;
text-shadow: none;
width: 168px;
}2. All of the selectors listed in step 4 above can also be replaced with one line, and again this takes care of nested menus. Here's the selector you should use:
#header .sub-menu .current-menu-item > a
Edit: That's a child selector in the code above (a right facing angle bracket) between the .current-menu-item and the a, that didn't survive the code editor...
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipant.featured-bottom .featuredpost .post {
border-bottom: none;
}You're welcome!
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantRusty,
Editing the style.css file in your child theme directory is what you're looking for, normally placing the update at the bottom (end) of that file. If you make a change and it doesn't seem to stick, add !important to it, like so:
#genesis-responsive-slider {
border: none !important;
}
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantGood deal! And you're welcome!
#nav ul {float: none;}
will pop that search box over to the right... 🙂
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantThe website at that link has a solid white background with no background color in the navigation. Did you mean a different site?
Correct me if I'm wrong, but I think you're wanting the blue colors of both navigation bars to extend to both sides of the screen, right?
If so, you'll need to change the width of the primary
#wrap
DIV to 100%, then adjust the other main DIVs to center within that, and your navigation DIVs to go full-width.Let me know if I'm on the right track here.
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉JohnParticipantHi Krystyn,
I just looked at your test site - could you give more detail about what you're wanting the navigation bars to do? Or did you figure it out?
John
John Sundberg | blackhillswebworks.com
A WordPress developer’s toolbox: Firebug | WordPress Codex | Google 😉 -
AuthorPosts