Forum Replies Created
-
AuthorPosts
-
Chris MooreMember
Yep, I figured it out! That one did the trick.. This is the one I was looking for:
.eleven40-pro-blue .genesis-nav-menu .current-menu-item > a
It's live on the site now...
ONE REMAINING QUESTION:
How do I get the nav menu to be #222 when I am reading a post that is in a particular category?
So, if I am reading this post (linked here), how do I get the "Spirituality" secondary nav item to light up with #222?
I suppose this requires doing some custom PHP work. But I will put it out there... I'm sure it's easy. I just don't know how to do it! 🙂
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberThanks for your reply @maroontech, but maybe I should have been clearer. I meant the color of the nav menu item when you are ON that page. I want to keep the menu items blue, the hover as #222, and then the current page/category you are on as #222 as well.
I think this is the selector that I was hunting down:
.eleven40-pro-blue .genesis-nav-menu .current-menu-item > a
I will give this a try...
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comJune 18, 2013 at 9:34 pm in reply to: How can I limiting the number of blog posts only on the homepage of Minimum? #46679Chris MooreMemberGreat to hear Dan! Glad it helped...
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 30, 2013 at 11:39 am in reply to: How can I limiting the number of blog posts only on the homepage of Minimum? #43248Chris MooreMemberWell, looks like I solved it!
I just added this to the `functions.php` and voila, only 2 posts on the homepage now!
`/** Change the number of posts on homepage */
add_action( 'pre_get_posts', 'minimum_home_posts' );
function minimum_home_posts( $query ) {
if( $query->is_main_query() && !is_admin() && is_home () ) {
$query->set( 'posts_per_page', '2' );
}
}`Comments are welcome!
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberJust bumping this post again.
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 28, 2013 at 2:47 pm in reply to: How can I insert the Facebook Like button code in the post-info DIV? #42953Chris MooreMemberThe `return '';` should actually contain the standard Facebook "Like" `div` code, from here: Link to Facebook Developers Page
It gets stripped on the site here. (Anyone know how to avoid that?)
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 28, 2013 at 2:46 pm in reply to: How can I insert the Facebook Like button code in the post-info DIV? #42952Chris MooreMemberHere is my current solution (which actually works):
I created a shortcode function, like so:
`// Add a shortcode for Facebook "Like" insertion
function reflect_fb_shortcode() {
if ( is_single () || is_home() )
return '';
}
add_shortcode('FB-Like-Shortcode', 'reflect_fb_shortcode');`Then I just dropped the newly created shortcode [FB-Like-Shortcode] exactly where I want it using the Genesis Simple Edits plugin.
Although it works, I would still like to know how I could just do it in the appropriate theme template files or the `functions.php` file.
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 28, 2013 at 2:41 pm in reply to: How can I insert the Facebook Like button code in the post-info DIV? #42951Chris MooreMemberDo I basically have to unhook the `genesis_post_info()` function to get rid of the current Post Info and then place my code using the `genesis_before_post_content` hook?
What would the exact function look like and how would I replace the existing Post Info code, while adding the Facebook Like code snippet as well?
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 28, 2013 at 2:27 pm in reply to: How can I insert the Facebook Like button code in the post-info DIV? #42948Chris MooreMemberI figured out one thing that I was missing: I needed to explicitly pull the `href` like this:
`data-href="'. get_permalink() .'"`
Now my issue is how to insert the code I now have (which works!) directly into the right place in the theme template files (or via `functions.php`).
I would like the code to be inserted exactly after the comments count at the top of each post, in the `post-info` `div`.
Anyone? 🙂
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 28, 2013 at 4:05 am in reply to: How many tags will display in the tag cloud and how do you limit the count? #42887Chris MooreMemberHaha... Poking around, I figured it out!
But now my question is, is this the best and most elegant way to accomplish the task at hand?
Thanks for your feedback... Here's the code I'm using in `functions.php`:
`/** Add a filter to change the tag cloud font-size range and number */
add_filter('widget_tag_cloud_args','set_tag_cloud_size_number');
function set_tag_cloud_size_number($args) {
$args = array('smallest' => 8, 'largest' => 11, 'number' => 20);
return $args;
}`
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 28, 2013 at 3:55 am in reply to: How many tags will display in the tag cloud and how do you limit the count? #42885Chris MooreMemberI'm sure this will be of help to those that know all the details of PHP:
http://codex.wordpress.org/Function_Reference/wp_tag_cloud
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberI know there's an easy solution to this, I just don't know what code to put in the `functions.php` file. I'm sure someone will stumble upon this thread sooner or later.
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberHello there!
Try going to the GENESIS menu, then scroll down till you see COMMENTS AND TRACKBACKS. What do you have checked there?
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberA note of caution though, the CSS that I shared above will also hide the featured image banner at the top of the homepage (depending on how you have Minimum set up). If you do not want this to happen, you can hide the featured image banner only at the top of single blog posts like this:
`.single #featured-image {
display: none;
}`
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comMay 26, 2013 at 11:13 pm in reply to: Help with Hupso Share Buttons and eleven40 child theme… #42758Chris MooreMemberI actually figured this out, all you need to do is change `overflow: hidden;` to `overflow: visible;`.
I ended up going with the Digg Digg social sharing plugin though. So I guess it doesn't matter anymore. 🙂
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberJust bumping this post... 😉
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberHello there!
That's your "Featured Image" on the post in question. Remove the "Featured Image", and that will go away.
Or you can remove it from appearing on the site by doing this in your CSS stylesheet:
`#featured-image {
display: none;
}`
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberAwesome! I love it when it is something simple. 😉
Looks like this is "Resolved" then...
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberMay be a stupid question, but do you have comments turned on in SETTINGS > DISCUSSION ("Allow people to post comments on new articles") in WordPress and on the individual posts in question as well?
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.comChris MooreMemberThanks again!
It's now live!!! (The demo page is now inoperable)...
http://moorecreativeideas.com/about/
Resepctfully, Chris Moore
Web Dev, CSS Hacks, & Biz Consulting @ MooreCreativeIdeas.com / Blogging @ ReflectOnThis.com -
AuthorPosts