paulwpxp
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Davis] How to replace the default text under comments?You’re welcome! happy to help ??
Forum: Themes and Templates
In reply to: [Davis] How to replace the default text under comments?Please re-read my answer above, maybe you missed it? or maybe I misunderstood your second question about “there is no such line in the Davis theme”.
Let’s forget all that, and get back to the plugin.
Install and activate that plugin, navigate to plugin settings page, add new, and copy the code (provided in my answer above) paste into Original string area. Leave Text domain/context empty. Fill in your Replacement text. And that’s it, done.
It does really work, I tested it in my local installation. There is no need to edit/embed anything at all.
Forum: Themes and Templates
In reply to: [Davis] How to replace the default text under comments?Theme calls this standard WP function
comments_template()
in this line #L144
https://themes.trac.www.ads-software.com/browser/davis/1.19/index.php#L144which pulls up WP core comments template (linked in my previous answer), and we look inside it to find that exact string of text for the plugin to replace.
Forum: Themes and Templates
In reply to: [Davis] How to replace the default text under comments?Copy and paste this into Original string area
You must be <a href="%s">logged in</a> to post a comment.
Just leave Text domain and Text context empty, and put in your Replacement text. It works, I just tested it in my local installation.
For those who are curious, the string is taken from this line #L2374
https://core.trac.www.ads-software.com/browser/tags/5.3/src/wp-includes/comment-template.php#L2374Forum: Themes and Templates
In reply to: [Hemingway] featured imageThe featured image gets displayed on all pages. Single page, home(blog) page, author archive page, tag archive page, category archive page, search result page.
To hide featured image in all pages, just use this code
.featured-media { display: none; }
If you only want to hide it in single page and blog home page (and keep it for other pages), use this code
.home.blog .featured-media, .single-post .featured-media { display: none; }
Forum: Themes and Templates
In reply to: [Twenty Twenty] Reduce H1 size in TwentyTwenty ?What you asked for is already built-in. It’s under Appearance > Customize > Additional CSS
Use this code in it.
h1, .heading-size-1 { font-size: 2.4rem; opacity:0.8; font-weight: normal; } @media (min-width: 700px) { h1, .heading-size-1 { font-size: 3.6rem; } }
Change rem value to your liking. First line is for small screen (under 700px wide), the one within
@media
is for screen bigger than 700px. This partopacity:0.8; font-weight: normal;
is optional.Yes, that
#secondary
one.Honestly, a lot of time I don’t fully understand how CSS works either, I just try inspecting the elements and try changing some properties ??
Forum: Themes and Templates
In reply to: [Davis] How to replace the default text under comments?I guess that is output from WP core function, if that’s the case, we can use a translate plugin to translate(change) that particular text strings to our own.
This plugin for example (or many others that do the same thing)
https://www.ads-software.com/plugins/say-what/From a quick inspection via browser web dev tool, I’ve found that
- In HTML
<head>
use this<meta name="viewport" content="width=device-width, initial-scale=1">
instead (the one in the site right now doesn’t haveinitial-scale=1
), this will fix the tiny text problem in small screen. Note that I only see the tiny text problem in Chrome, but not in Firefox, so there might be browser consistency side of thing there. - Remove
display: table;
from.wrapper
fixed layout issue in small screen. - Add
overflow: hidden;
to#secondary
fixed layout issue in desktop sceenn.
There is this iframe recaptcha thing in the sidebar that has width attribute with fixed number in it and it’s wider than the
#secondary
, addingoverflow: hidden;
fixed the issue.Warning: it should go without saying that before making changes to live site, please make sure to have backup available so that we can revert the changes when something else unexpectedly goes wrong.
Forum: Themes and Templates
In reply to: [HB CHARITY] Change color of Hamburger menuSee to it that theme has option to change that color somewhere in theme settings or not. If not provided, we can use this code in Appearance > Customize > Additional CSS
@media (max-width: 1020px) { .mobile-menu span { background: #ff69b4; } }
change
#ff69b4
to your own color.Forum: Themes and Templates
In reply to: [Fluida] Remove — Category:Use this code in Appearance > Customize > Additional CSS
.archive.category .main .page-title { position: relative; margin-left: -3.15em; } .archive.category .main .page-title:before { content: "Category: "; position: absolute; color: #fff; background: #fff ; display: inline-block; }
It works in both small (mobile) screen and desktop screen. I tested it with theme demo’s category archive page using Chrome web dev tool. But it might not work when font family differs from the one used in demo, if that’s the case try adjusting
-3.15em
until it’s hidden completely.Yes, it is a hackish CSS way to hide that part but it gets the job done and no worry of breaking php template or function.
Forum: Themes and Templates
In reply to: [Baskerville] Missing “Like/Hearts” buttonJust FYI, I’m not the theme author, I’m just someone helping out the community.
Since this post is for Baskerville theme, to avoid confusion please post questions for other themes in each theme’s own support forum.
For Baskerville theme, this line is the call to
zilla_likes()
function
https://themes.trac.www.ads-software.com/browser/baskerville/1.35/functions.php#L329It’s called within
baskerville_meta()
inside<div class="post-meta">
right after post title + published time and before comment links.Forum: Themes and Templates
In reply to: [Astral] Logo SizeUse this code in Appearance > Customize > Additional CSS
.header #logo img { width: 275px; height: auto; }
Forum: Themes and Templates
In reply to: [Baskerville] Missing “Like/Hearts” buttonThat’s from a plugin called Zillalikes. Theme has CSS and function call built in for this plugin but users need to do the download and install the plugin manually.
See this section “Implement Like Functionality” from theme’s readme.txt
https://themes.trac.www.ads-software.com/browser/baskerville/1.35/readme.txt#L21Forum: Themes and Templates
In reply to: [Scrawl] Customising Gallery GridThis does the trick for the page you linked to.
.site-content .gallery .gallery-item { margin-bottom: 1.5em; }
Use the code in Appearance > Customize > Additional CSS
- In HTML