Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter wordpriss

    (@wordpriss)

    Hello everyone!

    I am attempting to use easy-google-fonts to take control of my post titles. Andrew Nevins was helping me in this thread.

    Before Andrew disappeared, he told me the following code, found in my child theme’s style.css, deals with the title font:

    .single-format-standard.has-header-image:not(.twentyseventeen-front-page):not(.home) .site-branding {
        color: white;
    }

    I would imagine connecting that … what do you call the .item behind a period in css, is that a class? I would guess putting that into some field in the plugin’s settings window and telling it how to modify all things under that class (if that’s the right word).

    I just don’t know how to do that.

    https://chronicle.su/society/misunderstood-serial-killer-indignant-after-he-is-mistakenly-identified-as-a-rapist/

    Additionally, I want my post titles to display only if there is no featured image set for that post.

    Here are links to my child theme’s header.php and style.css so you can see how Andrew and I put it all together:

    style.css
    https://pastebin.com/SCvUrBFR
    header.php
    https://pastebin.com/94mUHmMe

    He did most of the work and it’s now so far over my head, I turn to this forum in the hopes someone can understand and help me complete this task. Andrew was great, but I took a few days to get back to him last week and he has since stopped replying.

    Thread Starter wordpriss

    (@wordpriss)

    Also, I installed the font plugin, and I look forward to learning how to use it with custom css. Andrew, thank you so much.

    Thread Starter wordpriss

    (@wordpriss)

    Thank you Andrew. It just occurred to me that removing all the post titles will only look right if there’s a featured image attached to the post. For much of our content – perhaps hundreds of articles – that deletion would destroy readability because there would be no featured image at the top of the page, and therefore no post title, too. Is there a conditional statement we can make in the code that says only if there is a featured image, remove post title?

    Or what would you suggest in lieu of that?

    Thread Starter wordpriss

    (@wordpriss)

    Andrew, thanks for your help. I’ve had extra work, and just gotten around to reading your post in detail. I’m sorry for the late reply.

    I made your changes. It looks fantastic. Really coming together!

    I looked at the font code you directed me to, and I even added your example changes to get a feel for how they worked. I am comfortable editing that code to my liking, and I assume I can specify a font there, too, from a limited set of fonts.

    I offer my assumption in that guess-like manner because from my limited understanding of fonts, I seem to recall reading something about how there is just a handful of fonts which can be read by any browser, and that set includes Times New Roman, Georgia, Arial, and a few other basic ones like that (maybe Verdana and something else). Is my understanding correct?

    And (let’s say that I’m right) so if I want to depart from one of those basic fonts, then I will need the easy-google-fonts plugin you mentioned above. (Am I on track so far?) And because most people will want better fonts (myself included, probably), is that why you recommend it up front?

    Having gotten all this stuff squared away, and now rounding it off, we are fast approaching the finish line. I would like to remove the second instance of the headline now, just like we removed the redundant featured post. It would be good if we could keep the byline, though, so our desktop users still know who the authors are.

    I understand these questions are probably making you pull your hair out, just out of the dumb simplicity of them, and I apologize for that. It is really just now that design standards are changing so dramatically we are facing pressure to catch up and look fresh on everybody’s screen at once. You’ve been so kind so far, and I appreciate everything you have done for me.

    • This reply was modified 7 years, 4 months ago by wordpriss.
    • This reply was modified 7 years, 4 months ago by wordpriss. Reason: clarity
    Thread Starter wordpriss

    (@wordpriss)

    Thanks Andrew. Sorry for the delay in response. I just got home from my other job.

    Your code works great. There was a missing <?php tag again, but this time I found it! We are making excellent progress, man. I see what you mean, though, about mobile. Mobile (or just resizing the screen) – in addition to showing the featured image where we want it – still shows the featured image in the default location, too. But wow. You’re working miracles over there.

    I would like to add that I am very pleased with how this is coming along.

    In the past couple of days since you started helping me, I have been reduced to a baby-like, renewed awe at the world, as you’ve shown me just how little I knew. And so at the end of this, I might even ask you how to style that title font; like, what are my choices of font, and whether I need a new, separate class and that sort of thing. Because seeing your code at work has shifted my paradigm so radically, I want my own changes to fall into this new order you’re setting about because it’s very impressive and I want to continue learning how to do things the way you are showing me right now. The right way, you know?

    Thank you Andrew.

    Thread Starter wordpriss

    (@wordpriss)

    Nice, Andrew. I could not figure out what was wrong with your previous pastebin, but anyway, now we are making strong progress. The article title is at the top, and I see that your code fills the width of the header space, too, which is good. Now how can I give the post header image the same height as the frontpage header image?

    See this article, for an example of what I’m talking about.

    https://chronicle.su/news/donald-trump-to-seek-asylum-in-saudi-arabia/

    Also, it’s very interesting that the text line reveals pieces of the header logo behind it lol. Looks like a computer virus from the 90s!

    It’s impressive how you’re able to just pull this stuff out of your hat like that.

    Thread Starter wordpriss

    (@wordpriss)

    OK, probably a missing piece in there somewhere, because I now get the following error:

    Parse error: syntax error, unexpected end of file in /home/stalin/public_html/wp-content/themes/twentyseventeen-child/header.php on line 77

    Until I hear back from you again, I will compare the files and see if there’s a missing tag in there somewhere…

    Thread Starter wordpriss

    (@wordpriss)

    Thank you Andrew. The header image on posts have been replaced with featured images.

    Now, I need the featured images to fill 100% of the page, same as the front page header, I need to remove the redundant featured image above the story, and finally, the post title should be where the site title normally appears in the 2017 theme.

    I sincerely appreciate your willingness to walk me through this, Andrew. If you live in NYC, I will buy you a beer (or whatever!)

    I am looking for the same solution. Did you ever figure out how to get the header image to show up on your homepage?

Viewing 9 replies - 1 through 9 (of 9 total)