Forum Replies Created
-
Mod
As it turns out, this causes the related posts listing to show up on the front page, even if you’re just showing excerpts on the front page. (?)
But in the Related Posts settings, there is an option called “Auto Insert Related Posts? ” Ticking that box makes them show up automatically where I had placed them using an action hook, but they don’t show up in the excepts on the front page, which is easier.
You can still use the action hook method if you want them to show up someplace else, however.
Ken
Mod
I tried using the first plugin (by Denis), adding this code to my child theme’s functions.php file:
add_action('graphene_after_post_content', 'related_posts');
function related_posts()
{
wp_related_posts();
}It works! You can see it in action here.
If you do this, be sure to include the opening (
<?php) and closing (?>) PHP tags in your functions.php file. (I forgot to do this.)I added this just after the content, using the Graphene
graphene_after_post_contentaction hook. You can add it someplace else by using a different action hook. The complete list of Graphene action hooks is here.Ken
Mod
I actually see two plugins with this name. The first, by Denis, would require you to add this code to your templates:
Place
<?php wp_related_posts(); ?>in your templateswhich could be achieved using action hooks, I image.
The second, by Thamizhchelvan, does not require this. It adds a “Related Posts” option to each post, which you would have to fill in by hand.
Ken
Mod
I added link to stop the forum software mangling it.
Using backticks is your best bet for this.
Action hooks! I was just looking into this today and seeing how they could be used and then here’s a perfect example. Talk about serendipity. You’ve definitely given me a lot to think about here.
Thanks,
Ken
Mod
But it wants to be 1000px wide to not have horiz scrollbars. It’s set to 940px wide right now but…then the user has to scroll horiz which I think is bad.
Yeah, it is bad, because a user shouldn’t have to do a horizontal scroll. But even worse, even 940px is too wide. There’s just a bunch of white space to the right of the form.
Do you have any control over the iframe? If so, then you need to change
scrolling="auto"to
scrolling="no"or you could change
width="940"to
width="600"since the relevant portion of the iframe is only 570 pixels wide.
If you don’t have control over these aspects of the iframe, there’s not a lot you can do. But I suspect if you go back to wherever you got the iframe, you should be able to make these changes.
Ken
Mod
First, your links are bold. Try refreshing your page.
Second, yes, there is a difference with regard to how some features are handled in a child theme vs. custom css. See this post I wrote for a (too short) explanation.
Third, the rules in a stylesheet can overwrite each other. If you have a CSS rule early on in the sheet, and then inadvertently include another CSS rule later which affects the the same selector, the second rule is the one that your site will display. (This is one of the hardest types of errors to find, IMO.)
Ken
Mod
Looks fine to me in latest versions of Firefox and IE. Awesome header image, BTW.
Ken
Mod
In reply to: Configuring Home Page into Grid/Box Layout for Posts
August 30, 2011 at 10:19 pm #16701Please include a URL to your site. This is something that I am interested in because I have been wanting to create a magazine style child theme for some time.
Ken
Mod
I see on your demo site that you have pages with links to “Pages 1 2 3 4” how the heck do I do that?
That’s the plugin called WP-PageNavi, which is natively supported by the Graphene theme.
Mod
It looks good in IE9. In fact, it looks the same as it does in Firefox 6. I love what you have done with the top-nav bar and the footer. A very creative use of what is otherwise usually blank space. Please tell us how you did this.
Thanks,
Ken
