thetoolman123
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: creating shortcode that contains code?Thanks for the replies.
How do I go about actually creating a shortcode?
I could paste in may adsense code each time I make a post, but it would be easier to type or paste [adsense-shortcode] for example each time I make a post.
I have a template already, but I want the adsense code after the first paragraph of the post so I would have to do it manually.
Hi there,
Do you have an email address I can contact you on directly?
Thanks
Forum: Fixing WordPress
In reply to: udating child theme not workingHi,
Its on a local server at the moment.
Is there anything I should be doing differently? My CSS updates fine in the child theme, but the PHP files do not
Hi there,
I’m not sure and I wouldn’t know how to use it.
I’m guessing it might be a matter of going through every entry of the database to change the URL?
Apart from the database, do you know what else would cause teh styles in admin to disappear? I’m literally just changing it out of a directory into the root.
Thanks for the reply.
I can’t seem to install plugins as my admin panel has lost all its styles and some functionality hence why I am trying to do it in the database directly.
Is there a search and replace I can do in the database directly?
Thanks
Hi,
I have now found this code:
UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL'); UPDATE wp_postmeta SET meta_value = replace(meta_value,'Existing URL','New URL'); UPDATE wp_usermeta SET meta_value = replace(meta_value, 'Existing URL','New URL'); UPDATE wp_links SET link_url = replace(link_url, 'Existing URL','New URL'); UPDATE wp_comments SET comment_content = replace(comment_content , 'Existing URL','New URL');Can someone tell me if the following will work? I’m wondering if this will update all areas in the database and also if I have the slash in the right places?
UPDATE wp_options SET option_value = replace(option_value, 'https://www.website.com/phase-2/', 'https://www.website.com/') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET post_content = replace(post_content, 'https://www.website.com/phase-2/', 'https://www.website.com/'); UPDATE wp_postmeta SET meta_value = replace(meta_value,'https://www.website.com/phase-2/','https://www.website.com/'); UPDATE wp_usermeta SET meta_value = replace(meta_value, 'https://www.website.com/phase-2/','https://www.website.com/'); UPDATE wp_links SET link_url = replace(link_url, 'https://www.website.com/phase-2/','https://www.website.com/'); UPDATE wp_comments SET comment_content = replace(comment_content , 'https://www.website.com/phase-2/','https://www.website.com/');Thank you
Thanks for the reply and sorry I posted in the wrong forum.
I have checked the front end and the only reference to “phase-2” is my fonts which is strange because they should be referenced in the themes admin.
The admin doesn’t have any reference to “phase-2”, but I can’t see a main .css file for the admin styles.- What is the main admin style CSS file called?
Can you recommend somewhere where I can find the search and replace in the database?
Thank youThanks for the reply.
Yes, I have the same URL and the correct URL in both but still there are no styles
Forum: Fixing WordPress
In reply to: Log of activity in admin?Hi,
Thanks for the reply.
It was my mistake, the pages are still there, but the permalink somehow got changed!
Forum: Fixing WordPress
In reply to: shortcode for page titleThanks, I created one using this post:
https://spidergems.com/create-shortcode-wordpress-page-title/Many thanks, I have found it and now added it 🙂
Hi there,
Thanks for the reply.
I have had a look and it looks like I need to use the %%excerpt%% variable in the meta description field. I have tested it by adding %%excerpt%% in the description and it adds the forum post in there.
I am not sure how I get this to happen automatically though. I guess I will need to edit my functions.php file?
Forum: Fixing WordPress
In reply to: cache plugin to help clear cache?Thanks, I have installed “Nginx Helper” which seems to have resolved my issue 🙂
Forum: Fixing WordPress
In reply to: cache plugin to help clear cache?I’m not using any, that’s what I’m asking for 🙂
Hi,
Thank you very much for fixing this for me!
Will it make any difference if I use a JPEG or PNG as I have noticed the image has become a bit compressed. The JPEG I used was not compressed either.
Thanks again!