Forum Replies Created
-
AuthorPosts
-
September 28, 2013 at 10:45 pm in reply to: A widget that features random posts but omits ones on that blog page? #64650middayminerMember
Hi Joss29, thanks for that. I do know of that widget but it seems to have been abandoned by the developer, as well as needing manual ID entry each time I update my blog. Not the kind of automaton I had in mind. π
September 7, 2013 at 1:23 pm in reply to: !βmoreβ strips p tags from the first paragraph + div function weirdness #61244middayminerMemberUgh, update: It's not the break tag that does it. All of my posts have that bug when viewed in their own page. The issue with the div tags remain as I originally described. My apologies, I had tunnel vision after hammering away at the problem for a while. π
middayminerMemberHi Navitas, thanks for replying! Did you perhaps mean that the first paragraphs aren't wrapped with <p> tags? Because that's what I needed to add to make them work properly π
Other than the fact that I've been posting with the text editor instead of the visual one, I can't tell why every first paragraph doesn't have these tags...or is this just normal?
Anyway, thanks again!
middayminerMemberSolved it! Support wasn't much help either, telling me that the code would have to be written specifically for my site.
They did say the function was not genesis specific, so I just checked the codex and sort of winged it until it worked.
//* Modify the WordPress read more link add_filter( 'the_content_more_link', 'custom_read_more_link' ); function custom_read_more_link() { return '<a href="' . get_permalink() . '">Β» Continue reading "' . get_the_title() . '" </a>'; }
Yeah, all it took was the addition of ' . get the title() . '
Not sure how that makes it site specific, but progress is progress.
middayminerMemberThat's a really generous offer but I think I've troubled you enough today, Stewart. I'd rather not take up your time tomorrow as well! π I'm sending a ticket to tech support, just hope they won't link me to the forums this time...
middayminerMemberI honestly doubt it, Stewart. I've only ever modified the read more function through custom code settings since it works fine from there, and the directly added code in my functions.php is only comprised of stuff I barely understand that wouldn't work otherwise. π
Also, I tried directly adding the latest suggestion to functions.php(same result), but also noticed that it would whitescreen if custom code also called the read more function(I forgot to revert functions.php, making it two calls at once), so in my limited understanding I believe we can safely rule out a conflict. Perhaps the code is getting the default setting and then not applying the text mod or post title addition?
middayminerMemberYou understand perfectly well, no worries there.
The new code looks great, but it still reverts me back to [Read More...] π
For reference, my current customisation is based off Brian Gardner's snippet
http://www.briangardner.com/code/customize-read-more-link/Unfortunately googling seems to turn up absolutely no pertinent results for genesis regarding this.
middayminerMemberThanks for replying Stewart!
I tried the modification you suggested, but what it does for me is replace 'Continue Reading Β»' with '[Read more...]', which I surmise is the default?
I'm trying to make it so that the read more function will call and get the post title dynamically, like the 'Automatically display the post title in more links' section here
http://digwp.com/2010/01/wordpress-more-tag-tricks/The code there doesn't work, of course.
middayminerMemberUpdate: Please disregard my question about the widget styling, I think I've a handle on it now. Truly, CSS is a double edged sword.
middayminerMemberI have to add that I'd need to have post text start below featured thumbnails as well, instead of aligned to the right.
I just tested this on ipad/kindle fire resolution and looks like I have to go with a responsive 800px wide thumbnail to force text out of the way or just have text go below it. I feel the latter is preferable. πmiddayminerMemberI did try it there just in case, and in custom code at well. No luck.
This from the comments section of your link does work though!function exclude_cat($query) { if ( $query->is_home) { $query-> set('cat','-33'); } return $query; } add_filter('pre_get_posts','exclude_cat');
And indeed I am trying to sort out my workflow and other terrible things that get in the way of making content happen. Thanks for both the help and the tip! π
middayminerMemberHi Dorian, thanks for replying! π
Well, I think I have to defer on the file I should be editing, because the codex entry says I have to put the code in index.php
Problem is, it still doesn't work. I assume the index.php it's referring to is the one directly in the wp-content folder? There's one or two in the theme folders and thereabouts. Either I break the website, or get no change. http://www.foundwonders.com
pretty much just using`
<?php if ( is_home() ) { query_posts( 'cat=-33' ); } ?>
To confirm, the category is indeed the one called 'pending approval', ID 33. I'm very likely just missing something obvious.
Oh, and I have seen more than a few white screens since I started making the website, but always have a backup of the file handy. Very thankful that nothing has irreversibly broken yet.
July 4, 2013 at 4:55 pm in reply to: Prose β Auto-thumbnail resizing + Removing extra caption padding #49250middayminerMemberAfter more googling, fixed that second problem. Overly large thumbnails with captions are now responsive. I feel a bit silly, but hopefully this thread will help others, if nothing else.
.wp-caption, .wp-caption-text { max-width: 98.5%; height: auto; }
July 4, 2013 at 3:38 pm in reply to: Prose β Auto-thumbnail resizing + Removing extra caption padding #49241middayminerMemberDecided I really wanted borders, found a solution in google:
.wp-caption { width: auto !important;
July 4, 2013 at 2:58 pm in reply to: Prose β Auto-thumbnail resizing + Removing extra caption padding #49236middayminerMemberFixed the caption problem with code from here: http://www.chrismower.com/1020/customize-your-wordpress-image-captions/
Now I only have the thumbnails themselves to contend with π
middayminerMemberEverything's fixed!
I used this to handle all the primary sidebar text widgets:
/* primary sidebar text widget settings */ body.sidebar-content-sidebar .textwidget, body.sidebar-content-sidebar .textwidget p body.content-sidebar .textwidget, body.content-sidebar .textwidget p{ font-size: 12px; line-height:18px; }
Thanks, Ryan. You've been a great help this couple of days and I consider this thread resolved many times over.
middayminerMemberTo clarify, .textwidget seems to be changing primary sidebar text widgets for pages (http://www.foundwonders.com/faqs/ is affected as well)
as well as all body.content-sidebar widgets.middayminerMemberOkay, here's where I'm at with the cleaned up code:
First, I would like to exclude the primary sidebar widgets from the class changes on the content widgets (I'm sort of digging the border-background addition though)
secondly, this code here
body.content-sidebar .textwidget, body.content-sidebar .textwidget p{ font-size: 14px; line-height:21px; }
Does effect the primary sidebar widget here I set with the content aware sidebars plugin:
http://www.foundwonders.com/about/However it also goes on to override the category content widgets.
middayminerMemberSorry about that, I was just spamming away on changes and did correct it on my own. Looks like .textwidget is overriding it now.
middayminerMemberHold on, this is strange. Specific line-height works for category review but not the font size.
http://www.foundwonders.com/category/visuals//*top widget area, category view*/ body.content-sidebar #text-6 { font-size:14px; line-height:23px; }
What am I missing now?
edit: haha, that !important thing I set came back to bite me. I feel like I'm entering a brotherhood here.
-
AuthorPosts