Nick C
Forum Replies Created
-
Forum: Plugins
In reply to: [Genesis Responsive Slider] Slider disappearedHi, @yardena613.
You could try resaving your settings at Genesis → Slider Settings by clicking the “Save Settings” button.
If that doesn’t solve this, you can also try the “reset settings” button. You may then need to set up the slider width and height again for your theme:
- Maximum Slider Width (in pixels): 1140
- Maximum Slider Height (in pixels): 460
- Slider Excerpt Width (in percentage): 35
Forum: Plugins
In reply to: [Simple Social Icons] SVG icons not loadingHi, @cpatience
Your site isn’t loading for me at the moment, unfortunately. (“Error establishing a database connection.”)
If it comes back up and you still need help with this, please feel free to ask.
Forum: Plugins
In reply to: [Simple Social Icons] Icons loading too bigHi, @doubledoseblog.
It looks like you’re using a caching/minification plugin. As a starting point, please could you try clearing that or disabling it temporarily?
Forum: Plugins
In reply to: [Genesis Simple Hooks] Parse ErrorHi, @manonatelier.
The parse error suggests you have some invalid code in one of the Simple Hooks fields.
You could try removing the code a section at a time until the error clears, then review that code for syntax errors.
I don’t even have debug on. Why is this showing up?
The
eval()function the plugin uses throws a ParseError exception under PHP 7 or higher if there’s a syntax error in you code. It sounds like your site is configured to show E_PARSE errors: http://php.net/manual/en/function.error-reporting.phpForum: Plugins
In reply to: [Simple Social Icons] Issues when adding a new iconHi, @ameyabarve
The path to your new strava.svg file appears to be incorrect.
Your site is returning a 404 for a file named ‘my.svg’ at this location (note wp-content appears twice and file is named my.svg rather than strava.svg):
If your strava.svg file is in the Simple Social Icons plugin directory root, you could use the correct path in place of
esc_url(…)in functions.php:'http://ameya.net/wp-content/plugins/simple-social-icons/strava.svg#social-strava'If instead the file is in your theme directory, you can use
get_stylesheet_directory_uri()instead:esc_url( get_stylesheet_directory_uri() . '/strava.svg#social-strava' )Or the bare link to the file:
'http://ameya.net/wp-content/themes/eleven40-pro/strava.svg#social-strava'(I couldn’t see a strava.svg file at either location, so you’ll need to adjust the above with the correct path or move the file.)
Either way I recommend checking where the file is located, then making sure the path in your functions.php matches. Your browser’s console will show warnings whenever the path is wrong:
- This reply was modified 9 years, 4 months ago by Nick C.
Forum: Plugins
In reply to: [Simple Social Icons] xlink:href changes when plugin used with domain mappingGreat to hear this worked for you, @tonim07.
> does this open any doors to potential hackers or malicious code..?
The change allows one site you own to access resources from another site you own; it won’t open it up to hackers.
Forum: Plugins
In reply to: [Simple Social Icons] xlink:href changes when plugin used with domain mapping@tonim07 Are you willing to try adding a CORS policy to your main site at http://shspestcontrol.com/ ? I believe doing so will solve this for you.
I found that the
svgxuse.jsscript attempts to load the icons dynamically if they’re served from another domain. This will work around the browser bug I mentioned before and allow the icons to load if your CORS policy is in place.You could set your CORS policy on
shspestcontrol.comto allow access for all domains (like this: http://enable-cors.org/server_apache.html ), or only on the domains you’re using. Please feel free to report back to let me know if this resolves things for you.@leehodson I replied in the GitHub issue you kindly shared, but the same solution applies – a CORS policy will allow your alternative-language domains to load the SVG file from the main domain with AJAX, without hardcoding changes to the plugin.
- This reply was modified 9 years, 4 months ago by Nick C.
Forum: Plugins
In reply to: [Simple Social Icons] xlink:href changes when plugin used with domain mappingThe request for the icon image file from any Page or Post that uses http://www.pestcontrolri.com/ is only using the path
<use xlink:href="#social-email"></use>
It does not include the full path.The path used on http://www.pestcontrolri.com/ looks like this in the raw source to me:
<use xlink:href="http://shspestcontrol.com/shs/wp-content/plugins/simple-social-icons/symbol-defs.svg#social-linkedin">(This is being rewritten by the
svgxuse.jsJavaScript, which is why you see<use xlink:href="#social-linkedin">in dev tools.)The file is failing to load because it’s requesting the SVG from another domain. I originally said that a CORS policy could help with this, but that doesn’t seem to be the case after more research – it looks like CORS doesn’t currently work for SVG due to a bug that affects Chrome and other browsers.
The solution from @leehodson works around this by using a relative path instead of a full one, so you’d end up with this:
<use xlink:href="/wp-content/plugins/simple-social-icons/symbol-defs.svg#social-linkedin">But it requires hard-coding the path into the plugin. I’ll look into some alternative solutions to see what can be done here.
Forum: Plugins
In reply to: [Simple Social Icons] How do I use the Phone URI:There isn’t a foolproof way to detect tel protocol support and hide the link if it’s unsupported, unfortunately.
You could consider hiding the icon above certain screen widths, though. You’d need to add this CSS to your theme’s stylesheet:
@media only screen and (min-width: 800px) { .ssi-phone { display: none; } }Where 800px is the width at which you’d like to hide the icon.
- This reply was modified 9 years, 4 months ago by Nick C.
Forum: Plugins
In reply to: [Simple Social Icons] Icon Color No Longer DisplayingHi, @theriz.
Your site’s attempting to load the icons from http://www.cbprem.com/wp-content/plugins/simple-social-icons/symbol-defs.svg, but your site is served from cbprem.com, which generates an error that prevents the icons from loading:
XMLHttpRequest cannot load http://realtor.cbprem.com/wp-content/plugins/simple-social-icons/symbol-defs.svg. Redirect from ‘http://realtor.cbprem.com/wp-content/plugins/simple-social-icons/symbol-defs.svg’ to ‘http://www.cbprem.com/wp-content/plugins/simple-social-icons/symbol-defs.svg’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://cbprem.com’ is therefore not allowed access.
Your host should be able to work with you to fix this by either:
– Setting your WordPress installation to serve resources from http://cbprem.com/ instead of http://realtor.cbprem.com/ or http://www.cbprem.com/ (by editing your WordPress and Site URL settings at Settings → General to use http://cbprem.com/, or by adjusting your server config).
– Setting up a Cross-Origin Resource Sharing Policy to allow the icons to load icons from http://www.cbprem.com on cbprem.com.
- This reply was modified 9 years, 4 months ago by Nick C.
Forum: Plugins
In reply to: [Simple Social Icons] xlink:href changes when plugin used with domain mappingYou could either:
1. Ask your web host for help creating a Cross Origin Resource Sharing Policy that allows your subsites to load the icon file from your main
shspestcontrol.comdomain.2. Ask the “Multiple Domain Mapping on Single Site” plugin developer to consider rewriting asset URLs for any page that is using a different domain. That way, the request for the icon file on http://www.pestcontrolri.com/ would be:
http://www.pestcontrolri.com/shs/wp-content/plugins/simple-social-icons/symbol-defs.svg…instead of:
http://shspestcontrol.com/shs/wp-content/plugins/simple-social-icons/symbol-defs.svgAnd your icons would load on all domains.
Personally I would choose option 1.
Forum: Plugins
In reply to: [Simple Social Icons] How do I use the Phone URI:You can use this format:
tel:1800123456789Where 1800123456789 is your phone number, without spaces.
That will create a link that starts a phone call on any device that supports the
telprotocol.Forum: Plugins
In reply to: [Simple Social Icons] Problems of display in postsHi, @jonathannabais.
Are you using any caching plugins or services (such as CloudFlare)? You may find that clearing the cache solves this.
If not, there are two other issues that can cause this:
– Your theme may have CSS rules that conflict with the new plugin. (Your theme developer may need to update their styles.)
– There may be a problem serving the vector icon file. (Less likely here, as they load for you on the blog page.)
You’re welcome to link to a page where the issue is visible if you’d like more specific advice on this.
Forum: Plugins
In reply to: [Genesis Responsive Slider] Genesis Slider stopped workingHi, @marcan
The slider appears in Chrome for me:
If you’re still seeing a blank space, does it only appear like that when you’re logged in?
Do you see any errors in the console?
Forum: Plugins
In reply to: [Simple Social Icons] vertical bars displaying after updateThanks for the report and for sharing your URL, @masircely.
It looks like your site is using the CloudFlare service. If you clear your CloudFlare cache after updating, you should find the icons display correctly.