johnwmcc
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to change the word Tag on single product pageI’ve tried editing the BusinessBloomer code to the following, and made it a new snippet to operate on the front end only.
/** * @snippet Translate a String in WooCommerce (English to English) * @how-to Get CustomizeWoo.com FREE * @author Rodolfo Melogli, adapted by John McClenahan 2022-06-15 * @compatible WooCommerce 4.5+ */ add_filter( 'gettext', 'afu_translate_woocommerce_strings', 999, 3 ); function afu_translate_woocommerce_strings( $translated, $untranslated ) { switch ( $translated ) { case 'Tag': $translated = 'Support medium'; break; } return $translated; }But it doesn’t appear to do anything. The painting still shows this line on the right of the image:
“SKU: Flapper 1 (Green Dress) Category: Art Deco Tag: MDF”
Have I mangled the code and ‘broken’ it? Or just misunderstood how it works?
Out of interest, what do the two numbers 999 and 3 in the parameters of ‘add_filter’ represent?
Forum: Plugins
In reply to: [WooCommerce] How to change the word Tag on single product pageThank you for your responses.
I had seen the businessbloomer snippet, but don’t really understand how ‘tied’ to the businessbloomer website it is.
Is the businessbloomer word in the code just an arbitrary name ‘placeholder’ that could be replaced with any other string, just used to define in effect a ‘namespace’ to prevent a name conflict with woocommerce or any other plug-in?
If so, I think I understand in principle to use it my artsforukraine site.
Late night here, so I won’t try until tomorrow.
Forum: Fixing WordPress
In reply to: Can’t see where to edit default pageThank you for such a quick and helpful reply. That’s sorted the problem.
I’d seen that setting once before, but couldn’t find it, and thought perhaps that this theme didn’t include that setting! DoH!
The site is intended to be all pages, not posts.
Forum: Fixing WordPress
In reply to: Can’t install pluginsI have found a workaround: expand the downloaded ZIP file for the plugin, and use external FTP to upload the unique-headers folder and contents into the wordpress plugins folder. That seems to do everything needed to install the plugin, which then works.
But I’d still like to understand why neither of the built in methods of installing plugins work, and fix that.
IMPORTANT PS
Although the site now works to browse, I can’t log in – the login page appears when I type baconianclub.uk/wp-admin in the address bar, but instead of going to the Dashboard when I’ve filled in the correct username and pw, I just return to the login page.
PPS
I can now log in after a password reset.Forum: Fixing WordPress
In reply to: Remove too-wide margins in Twenty SixteenThank you for your first suggestion. It works when I edit the style.css file directly and put margin 0, but (unless I did it wrong and didn’t clear the cache, though I thought I had) it doesn’t seem to work if I put the whole of that code in the Additional CSS panel. Shouldn’t that do it too?
I suspect my style.css file will get overwritten if I have to update or replace the theme.
About the code I posted: in the file itself it uses the greater than and less than symbols, not the HTML code for them. And there’s no visible difference between the two examples you posted, either in the display format, or if I look at the page source code. Though I think I know what you are getting at.
Thanks for the clue about posting images. Don’t now need to, but will remember and use in future if needed.
Forum: Fixing WordPress
In reply to: Remove too-wide margins in Twenty SixteenI’ve tried both of these – added the first to Additional CSS, and edited the page.php file directly to read
<div id=”primary” class=”content-area” width: “100%”;>
but it seems to make no difference, even after saving the changes, and reloading the page.
Can I upload a screenshot image here? (I can’t see howto.)
Or to I have to save the screenshot to a web-accessible location like Dropbox and make a link?
- This reply was modified 8 years ago by johnwmcc.
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?I’d like to switch to the Responsive support website, but at the moment, I still can’t get access to the page cyberchimps.com/new-topic. The support techs for the hosting company for the cyberchimps.com website are looking into why that is, but haven’t yet solved my problem of inability to start a new topic there. I can see the rest of the cyberchimps site, but I still can’t start a new topic, even after registering and logging in.
John McC
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?Correction: the version of Responsive I have installed is 1.9.6.2, not 1.9.2
The cyberchimp ‘new-topic’ page is still unavailable, so my post will have to wait.
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?OK. Will do.
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?Thanks.
Well, I’ve tried to open a new topic on the cyberchimps Responsive Free forum, but am getting an error message:
“Connection error. Signal loss at 1.21 Gigawatts. Time machine status unknown. We’ll be right back”
I’ve registered, and logged in, and the error is repeatable, but says it may be temporary. Will try again later tonight.
And BTW, I’ve deleted the responsive theme folder, then successfully downloaded and installed the latest v1.9.2 of Responsive Free.
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?Well, I think I understand the point here, and am happy to start a new thread, about the Responsive theme, but may I leave this one open in case I have to revert to Twenty Fourteen and have any further issues?
I’ll start a new thread shortly – have to do something else for as while first.
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?Hmmm. I seem to have a problem of some kind with the Responsive theme.
I see there’s an update available, which I tried to install. It says it fails because it can’t delete the older theme version. I can’t delete it manually, either.
I’ve checked the file permissions on the server, which look fine – everything read/write/execute except Public is read/execute only.
I don’t want to delete the files manually, since that would (I presume) leave loose ends in the database.
Any suggestions, please? For example, reinstall the Responsive theme?
John McC
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?What is involved (including any charges) in ‘having a few minutes with an Evil Genius’?
In the meantime, I’ll experiment a bit more with the theme.
I’ve quickly tried this evening changing the Theme Options to point to a brand new Home page, and just inserting the HTML code from my current Twenty Fourteen home page into it.
It’s still showing some code on the page ‘above’ my page contents, and I can’t see where/how to get rid of it – the page seems to be trying to put a couple of widgets there, failing, and then giving an error message.
Unfortunately, little or no more time tonight to experiment further, but I’ll get back to you as soon as I can.
Forum: Themes and Templates
In reply to: How do I remove the sidebar from blog page in Twenty Fourteen?I’ve looked at your video – and I’m impressed that you have certainly done a lot very quickly to get important parts of the front page working in Responsive.
When I tried the Responsive theme myself here, it wouldn’t display my existing Home page at all as the home page – just got a plain white blank page, even though I had disabled the Override WordPress default home page, and told it which static page to use as Home page.
Does it matter that the current home page deliberately has no Title?
I eventually managed to copy the custom home page HTML into the Custom home page offered by Responsive, but it didn’t replace the default theme home page contents, only added to them. In the few minutes I have tonight before bedtime (it’s almost 1am UK time) I can’t easily see how to get rid of the existing default content, but will perhaps try again in the next few days (I’m busy on other things almost all tomorrow and much of Tuesday).
I’m afraid I got slightly discouraged with this first attempt. I’ve reverted the theme to Twenty Fourteen with existing custom modifications for the moment.
But if you are still willing to give me a little more help to get over this initial hurdle, I would really like to see if I can get the site to work in Responsive – perhaps I could start from where you had got to, and just ask for a little more help in setting up a child theme and style.css? And in getting rid or, or overriding, the default Responsive content?
Best wishes, and thanks again
John McC