Forum Replies Created
-
AuthorPosts
-
November 22, 2018 at 2:56 pm in reply to: Reliable Snippet to Use Inline SVG for site logo – as seen on StudioPress.com #224529cbryantMember
Hi Victor,
Thanks for your reply.
You're right - that's the easiest solution.
cbryantMemberHi,
Yes - I see what you're describing.
I think I understand what's causing the problem.
Yes - it's fixable.
But not without some effort.I'll tell you up-front: I think the easiest solution - if possible - it to try another plugin. You can stop reading here, and do that.
But if you want to understand the problem, and maybe try to fix it, read on.
The problem
The problem is the theme and the plugin used different base font-sizes.
It looks like the Essence theme has set a base font-size of 62.5%.
(62.5% of the 'browsers root font-size' of 16px. 62.5% of 16px = 10px).Why 62.5%?
Many designers use this approach to make it easier to calculate relative font sizes in REM values as they write the theme CSS. Basically, it lets you to set a 20px font size in rems by just dividing by 10. 20px = 2.0rems. Or, 16px = 1.6rems. And so on.Fine. But..
But a problem arises when you have plugin that was not designed using that base font-size. Your plugin was most likely designed using 16px (not 10px/62.5%) as the base font-size.As a result, when the plugin CSS uses a font-size of 1rem on a CSS selector - they intended it to be 16px. The plugin is inheriting the base-font size of 62.5%/10px from the theme. So 1rem is giving you 10px instead of 16px.
Or, where the plugin CSS font-size is 1.25rem, they intended 20px (or, 1.25 x 16px), but are getting 12.5px instead. You get the point.
The end result: all your plugin elements have really small text.
How do you fix this?
Solution number one: go through and change the font-sizes in the plugin CSS. Since it's a plugin, you may need to override the plugin CSS by adding the selectors and font-size properties to your child theme CSS.
For example:
.cooked-recipe-search .cooked-browse-select .cooked-field-title { font-size: .9rem; // default value font-size: 1.44rem // edited value } .cooked-recipe-card-title { font-size: 1.25rem; // default value font-size: 2.0rem // edited value line-height: 1.65rem; //default line-height: 1.65; // edited value }
You may need to add
!important
to the updated value if the above code doesn't work, like so:.cooked-recipe-card-title { font-size: 1.25rem; // default value font-size: 2.0rem !important; // updated value }
(I don't like using !important, but sometimes it's necessary).
Solution number two: find a different plugin that looks good out of the box.
Hope that gets you on the right track.
November 22, 2018 at 3:11 am in reply to: Making Genesis W3C Valid? Remove unnecessary TYPE attribute from menu JavaScript #224517cbryantMemberHi Victor,
I checked out the code you'd found online.
I actually already have that code in my theme - and it works great for enqueued js and css.However, that code does not remove the TYPE attribute from the Genesis Responsive Menu setup script. That script is used/called (my js ignorance is showing) using wp_localize_script (not enqueue). So my hunch is that has something to do with it.
I need to move on to other issues for now.
But I'm determined to validate this Genesis theme.
So if I get a solution - I'll share here.
And hopefully, if someone else does, they will too.All the best,
November 20, 2018 at 3:18 am in reply to: Making Genesis W3C Valid? Remove unnecessary TYPE attribute from menu JavaScript #224467cbryantMemberHi Victor,
Thank you for responding.
I apologize for not replying back sooner.
I think the forum notification went to spam.Either way - I'll check out the code you found and reply again.
Thanks!
April 1, 2018 at 1:11 am in reply to: Standard WordPress template tags not working in Genesis Child Theme? #218516cbryantMemberThanks for pointing that out to me Brad.
Very helpful and appreciated.
March 20, 2018 at 8:00 pm in reply to: Standard WordPress template tags not working in Genesis Child Theme? #218165cbryantMemberUpdate: By placing
the_post(); rewind_posts();
at the top of my post template, I'm able to include standard WP template tags, without the need to re-write Genesis shortcode functions.March 20, 2018 at 1:32 pm in reply to: Standard WordPress template tags not working in Genesis Child Theme? #218160cbryantMemberThanks for that tip Brad. I was delighted to see your name on the response being that I have already learned a lot from you at wpsites.net
Your tip was helpful in pointing me in the right direction.
But does this mean Genesis does not allow us to use standard WordPress template tags in child themes? We need to use the appropriate Genesis counterpart to access those standard WordPress functions?
That would explain a WHOLE lot for me. lol
October 18, 2014 at 8:32 pm in reply to: Repositioning Genesis Simple Share Above Featured Images #128293cbryantMemberHi Brad,
Thank you! I'll try this out and see how far I get.
The Simple Share plugin is free by signing up at Brian Gardner's blog.
http://briangardner.com/get-free-content/
Will let you know what happens with this code snippet.
cbryantMemberThis code snippet did the trick:
//* Show Sermon CPT entries in addition to Posts in Category Archive Pages add_action( 'pre_get_posts', 'cpt_entries_and_posts_in_archives' ); function cpt_entries_and_posts_in_archives( $query ) { if ( $query->is_main_query() && !is_admin() && is_category() ) { $query->set( 'post_type', array( 'post', 'sermon' ) ); } }
(props Bill Erickson)
@Brad - thanks for your input. Your wpsites is a valuable resource!cbryantMemberHi Brad,
Thank you for responding.
The code was generated by Custom Post Types UI plugin.
I'm going to take a look at your recommendations and links and will post the results.
Thanks again - Chris
cbryantMemberI'm running into the same problem described by SaraGraybill.
I've set up a CPT called "sermon".
Set it up manually in my functions.php. (code at bottom).
The CPT itself correctly uses the Genesis 2.0 Archive template support for CPTs.
That is: I can view a complete list of all CPTs on an Archive page, and add info to it using Genesis Archive settings. All good.However, this CPT has "categories" enabled.
Yet, when I click on the "Filed under 'Category Name' on a single CPT it brings me to the standard Genesis Category Page (good) but gives me the error "Sorry, no content matched your criteria."The category heading and title which I added in the backend do appear correctly on the category page.
So... it's as if it's seeing the Category correctly - but not seeing the CPTs within the category .@ 01themas idea seemed to make sense. But I had no success with it.
Is there a simple Genesis function for adding Genesis Category Archive Support to CPT Categories (and not just to the Post Type)?
Any suggestions are welcomed.
I'm working locally so have no link to provide.
Here is my CPT registration code... in case maybe anyone spots a glaring omission on my part....
Thanks in advance for any thoughts or comments.
Chris
add_action('init', 'register_cpt_sermon'); function register_cpt_sermon() { register_post_type('sermon', array( 'label' => 'Sermons', 'description' => 'Audio Recordings of Sermons', 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'capability_type' => 'post', 'map_meta_cap' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'sermon', 'with_front' => 1), 'query_var' => true, 'has_archive' => true, 'menu_position' => '5', 'supports' => array('title','editor','excerpt','custom-fields','revisions','thumbnail','author','page-attributes','genesis-cpt-archives-settings'), 'taxonomies' => array('category'), 'labels' => array ( 'name' => 'Sermons', 'singular_name' => 'Sermon', 'menu_name' => 'Sermons', 'add_new' => 'Add Sermon', /*I've included a full series of labels - but left them out for readability here*/ ) ) ); }
cbryantMemberHi Dawn,
I'm not sure what you mean when you say
it's the Genesis Framework, so there is no custom menu setup
Genesis does support Custom Menus if you go to Appearance > Menus in the admin area, you should be able to control the menus from there.
Or, maybe you meant to say "it's not the Genesis Framework"?
cbryantMemberHi Aurore,
Are you using a version of WP that allows you to use Custom Menus?
I would think that you just need to go to the the Menus in the back end and Add the desired Category to the Menu that is being used for pages.
Regarding the second question:
There's a function you can add to your functions.php file that will remove the Post Meta that you're describing.
You can find that code snippet here: http://my.studiopress.com/snippets/post-meta/#remove
Chris
cbryantMemberHi choikh,
In your style.css for Generate, find -
.generate-orange #header
and add -
min-height: 110px;
Chris
cbryantMemberHi Travis,
Thanks for the reply.
This is the code that I was given by iThemes (or someone at their forum, I think it was a Moderator).
Chris
-
AuthorPosts