northstatehillbilly
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Google Fonts not loading properlyHere’s some more information for you:
Here’s what I’m noticing, and I don’t know if this is part of the problem:
In the Safari developer tool, I can see two error messages. One says this:
“Did not parse stylesheet at ‘https://moosenotes.com/wp-content/themes/moose?ver=cd9b96051512f036e7eb10bffa428d46’ because non CSS MIME types are not allowed in strict mode.”The other error message is this:
“Failed to load resource: The network connection was lost.” On the far right of this text is this link: https://fonts.gstatic.com/s/ubuntu/v8/sVvvcJDRTINJla2R4XwPVevvDin1pK8aKteLpeZ5c0A.ttf
I’m not sure what any of this means.
I load Google Fonts via my stylesheet. I’ve read it’s best to put them in functions.php, but I’m not sure how best to do this. It seems some people aren’t doing this correctly, from what I’ve seen in different blog posts.
I know when Google Fonts is loading, it may display the fallback font, which I’ve set to ‘serif,’ and that’s the font I’m seeing. But probably half of the time, Ubuntu is not loading at all.
Do you have any idea why this keeps happening? Thank you!
And now, using Bob’s link from above, the question is displaying as a link. Awesomeness personified! I’ve spent two days on this darn thing.
Here’s what works:
add_action('genesis_entry_content', 'moose_question'); function moose_question() { if ( !is_page() ) { $question = get_post_meta( get_the_ID(), 'question', true ); $link = get_post_meta( get_the_ID(), 'link', true ); if( ! empty( $question ) ) { echo '<div class="moose-question">'; echo '<a href="'.$link.'" target="_blank">'.$question.'</a>'; echo '</div>'; }}}
I thought I’d go ahead and post what’s working. Do not capitalize anything when creating custom fields, lest you forget to also capitalize in your code. Also, to make this a link you’ll need to insert HTML in the value field.
add_action('genesis_entry_content', 'the_question'); function the_question() { if ( !is_page() ) { $question = get_post_meta( get_the_ID(), 'Question', true ); if( ! empty( $question ) ) { echo '<div class="moose-question">'. $question .'</div>'; }}}
I can’t figure out the link portion just yet, but I discovered two errors.
Dummy errors and easy to overlook.
1) Instead of a double forward slash on a comment that precedes this function, I used one with an asterisk, which commented out the function and everything that follows. :o)
2) I named the key Question with a capital Q. But in the function I didn’t capitalize and that caused an error.
I learned from Brad Dalton in the StudioPress forums that you can use HTML inside a custom field box. So for now that’s how I’m outputting the key as a link.
Also, you don’t need
the_meta();
… it results in a bulleted list and pulls in everything. Not necessary. And there are a few other issues. I’ll post the finished code when it’s done.Thanks, Bob!
It doesn’t work yet, but I completely forgot to use periods before and after $link and $question, so thank you!
I’ll continue to fiddle and will post back here if I figure it out.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] strange text shows up when sharing with facebookI don’t understand. Does this mean sometimes this plugin will work and other times it won’t?
Does this plugin not install open graphs? It seems that’s required of any social sharing plugin these days.
Forum: Plugins
In reply to: [MC4WP: Mailchimp for WordPress] RadioNodeList errorI forgot to respond, sorry about that.
My site is launching in a few days. When it does, I’ll post back here with the link.
Or I could create a login for you. Let me know.
That makes perfect sense. I really love your plugin. Thanks!
Forum: Fixing WordPress
In reply to: Numbered pagination linksOh, heck.
I have no clue how to do this. The article I linked to is very insightful, but I already have paginated navigation links. I just need to alter how they display.
As always, I love what I’m learning, I’m just not sure what to do with it.
Forum: Fixing WordPress
In reply to: Numbered pagination linksHere’s a fun how-to article I found:
https://mor10.com/add-proper-pagination-default-wordpress-themes/
I’m needing to experiment on where to put it, since I’m used to putting everything in my Genesis child theme’s functions folder.
But this explains it really well.
Forum: Fixing WordPress
In reply to: Numbered pagination linksJose, can I paste the code snippet above directly into my functions file?
Is it complete as is?
I’ve finally managed to make semi-sense of the codex links you gave me and am excited about the possibility of making this work. I’ve talked about doing it for years and just never got close to making it happen.
Thank you.
Forum: Fixing WordPress
In reply to: Numbered pagination linksDoing some testing, I believe the most it shows is 7 numbered links.
When I added tons of new posts, the most I can get it to show is 7, but the line fills up quickly as the numbers get bigger.
1 … 23 24 25 26 27 … 39 breaks onto a second line at the font size and content width I’m using.
When I approach three digits, this will be even more of a problem:
1 … 123 124 125 126 127 … 145
So for now I’d like to control what displays to 5 page links, and eventually I’ll narrow it down to 3.
I’m not sure how to do this just yet, though. :o))
Forum: Fixing WordPress
In reply to: Numbered pagination linksI’ll explore the codex, thank you.
Since I’m only displaying one post per page, the numbers are going to get big fast. This could cause the numbered pagination to break onto a second line, which I don’t want.
I don’t feel people need to see several numbered options, such as 1 … 2 3 4 5 6 … 38.
The more pages I have, the more those numbers expand. I’d like the first page, the current page they’re on highlighted, and the last page, and maybe two others, like this:
1 … 42 43 44 … 98.
The numbered pagination works just fine. It’s the number of page links that display that’s the problem. :o)
I wanted to post back here and see if anyone has some suggestions on how to do this.
Thank you.
Forum: Fixing WordPress
In reply to: Where are the text and visual editor tabs for posts and pages?Vaughn was a big help in suggesting I deactivate plugins and try a different theme. I should have known to do that, but forgot.
In this case it turned out to be something else. The kind folks at my hosting company followed the steps in this WordPress forum post from two years ago, and it worked.
https://www.ads-software.com/support/topic/visual-editor-tab-not-showing-how-i-fixed-it
In the user profile, there’s a box you can check to turn off the visual editor. They also had to go into the files and reset the rich text editing feature to true.
I hope that helps if anyone else encounters the same problem!