nadgepress
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: WP Rest Api – ‘users’ endpoint returns 403 errorTurns out it was something on my server:
“This was hitting an outdated modsec rule in the firewall, we’ve whitelisted the rule for your account. Please let us know if you are still seeing the issue.”
All good now 🙂
Forum: Developing with WordPress
In reply to: WP Rest Api – ‘users’ endpoint returns 403 errorJust the users name :
"name":"restapi@test"Forum: Fixing WordPress
In reply to: Custom Plugin with subfoldersHi Joy,
that is what I call a quick response! Thanks 🙂I didn’t necessarily want to use an index.php file – I just wanted to use
a main directory that would contain all the individual blocks code.And for each of those blocks to show up as a plugin on the plugins page.
Have had a play around with no luck.
Could you give me a little more details? Or maybe I should just create each block plugin as an individual folder within wp-content/plugins/…?
Forum: Fixing WordPress
In reply to: Display featured image on home.phpThanks Joy!
Forum: Plugins
In reply to: [Gantry 5 Framework] Gantry 5 switching site to https//Thanks, I’ll do that 🙂
Forum: Plugins
In reply to: [WP Comment Policy Checkbox] Tickbox is not mandatoryI saw you had corrected the grammar!
Re: checkbox text
Instead of this:<small class="comment-form-policy-top-copy"><p>By checking this box you are giving us permission to store your data.</p> </small> <p class="comment-form-policy"> <label for="policy" style="display:block !important"> <input id="policy" name="policy" value="policy-key" class="comment-form-policy__input" type="checkbox" style="width:auto; margin-right:7px;" aria-required="true">I have read and accepted the <a href="[SITE URL]/privacy-policy/" target="_blank" class="comment-form-policy__see-more-link">Privacy Policy</a> <span class="comment-form-policy__required required">*</span> </label> </p>Something like this:
<div class="comment-form-policy"> <label for="policy"> <input id="policy" name="policy" value="policy-key" class="comment-form-policy__input" type="checkbox" aria-required="true"> By checking this box you are giving us permission to store your data. For more information see our <a href="[SITE URL]/privacy-policy/">Privacy Policy</a>. <span class="comment-form-policy__required required">*</span> </label> </div>– Contents of .comment-form-policy-top-copy moved to beginning of checkbox text
– Link text to Privacy Policy does not suggest that it is necessary to read and accept it before checking the box
– Inline styles deleted (not necessary at all)- This reply was modified 8 years ago by nadgepress.
- This reply was modified 8 years ago by nadgepress.
Forum: Plugins
In reply to: [WP Comment Policy Checkbox] Tickbox is not mandatoryThe button text is grammatically incorrect – it should be: I have read and accepted the Privacy Policy.
However, as drksecret indicated, it’s not what we need.
I don’t quite agree with drksecret: An (unchecked) tickbox is mandatory together with a message such as ‘By checking this box you are agreeing to your personal data being stored on our site.’. Then, there should be a link to the privacy policy, something like: ‘Find out more about our <link>Privacy Policy</link>.
Lastly, if you don’t check the existing box and click ‘Post Comment’ you currently get taken to a horrible error page. Wouldn’t it be possible to have the error message appear under the checkbox (in red)?
Hi thanks. Think that’s the way to go, yes!
Forum: Fixing WordPress
In reply to: Manually adding 301 redirects to .htaccess fileJust in case anyone else runs into the same problem (and the terse replies leave them scratching their heads and looking at horrible tech pages for the answer):
I wanted to do individual page redirects from the old site to the new. The domain name hasn’t changed.
In this case there is no need for RewriteEngine on – this is a red herring. The following (according to my researches) should work:
In .htaccess:
Redirect 301 /en/index.html http://new-site.co.uk/home/ Redirect 301 /en/about.html http://new-site.co.uk/about/ etc etc # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /your-site-path/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /your-site-path/index.php [L] </IfModule> # END WordPressForum: Fixing WordPress
In reply to: Manually adding 301 redirects to .htaccess fileok thanks
Forum: Fixing WordPress
In reply to: Manually adding 301 redirects to .htaccess fileSo:
RewriteEngine on(my redirects go here)
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /path-to-my-site/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /path-to-my-site/index.php [L] </IfModule> # END WordPresswould work ok?
Forum: Fixing WordPress
In reply to: Manually adding 301 redirects to .htaccess fileSteve – so 301 redirects don’t have require mod_rewrite? Just checking! Chris
Forum: Fixing WordPress
In reply to: Manually adding 301 redirects to .htaccess fileHi Steve thanks for your quick reply!
Chris