macariojames
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: My site have been hackedHi,
Carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures and start backing up your site.
Forum: Fixing WordPress
In reply to: how to limit caption in gallery?Oh! I like that solution @andraganescu!
Forum: Fixing WordPress
In reply to: Table Chart in WordPress EditorHey!
That is true, if you posted the code as is, most of those styles would impact the whole site. A simple way to get around that is to alter the code slightly by specifying a unique class for each table.
Actually, it looks like your code does that with what can be seen:
.tg .tg-38et
the.tg-38et
should be the specific table you’re putting on each page.Try applying styles to each table by its unique name (or you could do ID).
Forum: Fixing WordPress
In reply to: how to limit caption in gallery?Hey!
This may be a viable solution for you from another thread. It involves using a plugin for your media library, but it looks like the shortcode has character limits.
After some research, it looks like a non-plugin solution involves a good amount of custom code in the backend.
- This reply was modified 3 years, 11 months ago by macariojames. Reason: Reworded a sentence
Forum: Fixing WordPress
In reply to: Table Chart in WordPress EditorHey!
Have you tried copying the CSS code that’s in the bottom section of tablesgenerator into the Additional CSS section on your site? That might be the culprit for the missing divider and color.
Just looking at the screenshots supplied, doesn’t show any of the CSS on your site.
I hope that helps.
Forum: Fixing WordPress
In reply to: Acceso a wp-admin con php distinto a 5.6Hey!
This sounds like it would be best asked on the Siteground Support forums for their WordPress installs since it seems like a specific Siteground issue, and not necessarily WordPress.
Forum: Fixing WordPress
In reply to: Scheduled event, do_pings, failed to runHey!
The scheduled event message in Site Health is usually what’s called a cron job that has failed. You can learn more about it on a previous thread on the forums, as well as follow the fix linked to: https://www.ads-software.com/support/topic/wp-5-2-site-health-scheduled-event-has-failed-action_scheduler_run_queue/#post-12981075
I hope this helps!
Forum: Installing WordPress
In reply to: Installing wordpress in subfolderOkay great! Glad it’s working regardless of why.
Forum: Networking WordPress
In reply to: Can’t Deactivate Plugins to Create MultiSiteHey!
That’s an odd issue to have. Do you have FTP access to your server? A quick way to deactivate all plugins at once (and usually for good since your issue is odd) is to rename the plugins folder:
wp-content/plugins
to something likeplugins0
and refresh your Dashboard (well, the Plugins page). All plugins should now be deactivated.Let’s see what happens after you do that. Hopefully, everything will be deactivated and then you can move forward with getting your site to multisite. Also, make sure you rename the
plugins0
directory back toplugins
.Forum: Fixing WordPress
In reply to: [NSFW] No text displays when previewing or viewing post on websiteHey!
So, for some clarification, the url above and the content you’re creating, is it a ‘post’ or a ‘page’ you’re creating?
As for the ‘single template posts page’, what file are you editing? Is it the
single.php
file?Forum: Installing WordPress
In reply to: Installing wordpress in subfolderHey!
So the site is running fine — you can view the site just not the blog posts?
Do you have access to your Dashboard? I’m assuming yes, since you can change your
wp-config.php
file. With that said, try updating your permalinks: Go to Dashboard –> Settings –> Permalinks –> Click Save Changes (don’t actually have to change the Permalink structure).See if you can then view your blog posts.
Forum: Everything else WordPress
In reply to: Problems on URL and the logo and WWWHmm. After making the changes, can you try clearing your site’s cache? (Assuming your site is using a cache plugin.) And try clearing your browser cache as well.
Forum: Developing with WordPress
In reply to: Adding rel tag to all external linksAhh I understand now! Thanks for that.
So, I tested out your code above, and I see what the issue is. I don’t have an answer going about it a PHP and WP filter way (all the preg_replace and editing the $content is complicated), but I have something using Javascript that I think can be adapted for your needs. It’s what I use on my own sites to append rel attributes to all external links, as well as adding an image (via adding a CSS class) to all external links. Original code is below and then code that should work for your needs is below that.
/* Add 'text-external' class and rel="external noopener noreferrer" to anchors that are external links * (this.hostname !== location.hostname) but NOT to anchors containing images or subsequent parameters. * Notice multiple parameters for .not() ~mj */ function addImageToExternalLinks() { $("a").filter(function() { if ($debug) { console.log('Inside addImagetoExternalLinks()') console.log('this.hostname: ' + this.hostname) console.log('location.hostname: ' + location.hostname) } return this.hostname && this.hostname !== location.hostname; }).not('a:has(img), a:has("span.icon")') .attr("rel","external noopener noreferrer") .attr("target", "_blank") .addClass('text-external'); }; // end addImageToExternalLinks() addImageToExternalLinks();
And code that should work for you:
function addImageToExternalLinks() { $("a").filter(function() { if ($debug) { console.log('Inside addImagetoExternalLinks()') console.log('this.hostname: ' + this.hostname) console.log('location.hostname: ' + location.hostname) } return this.hostname && this.hostname !== location.hostname; }).attr("rel","noopener noreferrer") .attr("target", "_blank") }; // end addImageToExternalLinks() addImageToExternalLinks();
Forum: Developing with WordPress
In reply to: Adding rel tag to all external linksHey!
Just a point of clarification, what do you mean exactly by “so that I can manually add a no-follow tag”?
Might help me understand what you’re trying to do.
Forum: Everything else WordPress
In reply to: Problems on URL and the logo and WWWAll right.
Let’s try this. Do you have access to Dashboard –> Appearance –> Theme editor? If so, check the header.php file and see if there’s a hardcoded nav menu, specifically looking for the link with the logo.