Brett_the_Librarian
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Simppeli] Modifying simppeli_posted_onI don’t understand. How would someone find that URL if they didn’t already know the authorname? I’ve just gone in through phpMyAdmin and changed the authorname for my feed, then deleted my old post and created a new one. Are you still able to find my authorname?
Forum: Themes and Templates
In reply to: [Simppeli] Modifying simppeli_posted_onThanks for pointing this out. How would a site visitor find that page if they didn’t already know the author name?
Forum: Themes and Templates
In reply to: [Simppeli] Modifying simppeli_posted_onThanks for helping me through this. I’ve gone with #2 (thanks for warning me about #3 so I could avoid it). For anyone else following this thread or who might refer to it later, here’s the code I used for the <header> in template-parts/content-single.php:
<header class="entry-header"> <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> <div class="entry-meta"> <span class="posted-on"><?php the_time('j F Y') ?></span> </div><!-- .entry-meta --> </header><!-- .entry-header -->
and here’s what I used in my child theme for the relevant section in template-parts/content.php
<?php if ( 'post' == get_post_type() ) : ?> <div class="entry-meta"> <?php the_time('j F Y') ?> </div><!-- .entry-meta --> <?php endif; ?>
I didn’t see my author name in the body class or my feed URL. If you do, would you tell me how to find the areas in which my username is mentioned?
Regardless, I’ll mark this thread as resolved. Again, I really appreciate all your help with this request.
Forum: Themes and Templates
In reply to: [Simppeli] Modifying simppeli_posted_onWhich URL are you referring?
On the page that displays individual posts, I’d like to suppress the URL that appears here:
<span class="byline"> by <span class="author vcard"><a href="https://www.domain.tld/author/user-name/">User Name</a></span></span>
Forum: Themes and Templates
In reply to: [Simppeli] Modifying simppeli_posted_onSorry for not asking my question clearly. There are three issues:
1. Is there any point in obscuring usernames? I think the answer is, “Maybe”. That’s good enough for me, but I can see why some people might not want to bother doing it.
2. Are there any techniques within WordPress itself, or its underlying software, to obscure usernames? Yes, there are. There are two plugins that will help you do it, or you can drop into MySQL either directly or through an interface like phpMyAdmin.
3. Are there any techniques within the theme, Simppeli (or, more accurately, within a child theme of Simppeli) to hide URLs that reveal usernames? Probably, but I can’t figure it out. I feel like I’ve identified the part of the code that displays author URLs and I feel like I’ve modified that part of the code in a way that should prevent the author URL from being displayed within the child theme, but what I’ve done isn’t working: the author URL is still being served through the browser and is available to anyone using view source directly in a browser or doing the equivalent operation with a scraper or other script. I want to suppress that HTML from being made available to my site visitors, but I can’t seem to do it. Is there any way I can accomplish my goal?
Forum: Themes and Templates
In reply to: [Simppeli] Modifying simppeli_posted_onThanks for updating the h1 in 1.0.4. I’ve updated to this version and it works great!
I realize my username is not a secret, but even the article you linked to discusses the possibility of confusing script kiddies. And other security expert have written that it does make sense to Hide WordPress Usernames to Improve WordPress Security. I’ve used phpMyAdmin as advised in the article to which I linked, but there are two up-to-date and well reviewed plugins that offer the same feature:
Do you know why I’m unable to suppress the /author/ URL in the source? It seems like what I’m doing should work, but the URL is still there.
Forum: Themes and Templates
In reply to: [Simppeli] Modifying simppeli_posted_onThanks, Sami, for responding and for creating such a great theme. It’s beautiful and I feel like I understand it pretty well, even though I’m not an expert in developing or modifying themes.
I’m grateful for the reminder to copy the template-parts/content-single.php file into my child theme. Done!
I’m kind of old school about H1 elements. I realize HTML5 allows for multiple H1s per page (a big no-no in HTML4 and earlier), but I prefer to limit my pages to just one because it still seems more semantically clear. See The Truth About Multiple H1 Tags in the HTML5 Era and, for a different take, The Truth about “The Truth About Multiple H1 Tags“.
For the byline, it’s not just that I want it hidden. For privacy and security, I’d also like to keep my username from being included in the source (it’s in the /author/ URL). I’m suppressing lines 32-35 in inc/templage-tags.php in my child theme, but my byline, which includes my username, is still being included in the generated page:
/** * $byline = sprintf( * esc_html_x( 'by %s', 'post author', 'simppeli' ), * '<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>' * ); **/
Forum: Themes and Templates
In reply to: [Simppeli] text-transform: noneThis is great — thank you!
The font declarations work perfectly, and the function for removing Google fonts is much more efficient than what I was doing previously.
I’m going to mark this thread resolved.
Thanks again!
Forum: Themes and Templates
In reply to: [Simppeli] text-transform: noneThat worked perfectly! Thanks, Stephen Cottontail!
I would like to completely get rid of all Google Fonts (I’ve updated functions.php which has gotten my most of the way there) and substitute in the fonts I’m using at another site I maintain, Library Pipeline.
For headers, I would like to use:
color: #1A1A1A; font-family: Palatino,Palatino Linotype,Palatino LT STD,Book Antiqua,Georgia,serif;
And for body text, I would like to use:
color: #1A1A1A; font-family: Gill Sans MT,Gill Sans,Calibri,sans-serif;
On the whole, I’ve found Simppeli much easier to understand and modify than Accessible Zen (which is what I use for Library Pipeline), but the fonts are an exception, at least so far. Have you found an easy way to override all the fonts in Simppeli?
Forum: Themes and Templates
In reply to: [Simppeli] text-transform: noneSorry, right. I should have included this in my previous post:
Forum: Plugins
In reply to: [iframe] Embedding iframe from vendor (public library website)Thanks for responding so quickly. I’ve followed up with the vendor and they’re working on it.
If we run into any related issues, I’ll report them in this thread. Assuming this is the last post in this thread, it’s safe to call this issue resolved.
Thanks, again, for this plugin and for troubleshooting this issue.
Forum: Themes and Templates
In reply to: [Decode] Problems creating child themeThanks, Steven and Scott, for your help — and for responding so quickly and so clearly. For others, just in case the above doesn’t make sense to you, here’s the code I’m using to dequeue Oxygen and add the two Google fonts I’m using (in this case Merriweather and Merriweather Sans):
<?php function decode_remove_styles() { wp_dequeue_style( 'decode-font-stylesheet' ); } function load_fonts() { wp_enqueue_style('googleFonts', 'https://fonts.googleapis.com/css?family=Merriweather+Sans|Merriweather'); } add_action('wp_enqueue_scripts', 'load_fonts'); ?>
Forum: Themes and Templates
In reply to: [Decode] Problems creating child themeI ran into this problem as well, but was able to make a child theme using 2.8.4. Thanks for posting this fix.
But, like Steven, I’m confusing about changing the fonts. Every time I mess with functions.php, I take down my site. Scott, could you provide some more explicit instructions on changing fonts. My goal is to use a Google Font for headers and a different Google Font for body text. I’ve been working at it for hours and getting nowhere.