Kevinleary.net
Forum Replies Created
-
Working on this one immediately, a resolution will be complete within the next day or so.
Forum: Plugins
In reply to: [SVG Support] All SVGs on site now brokenThe solves the underlying issue:
/* * Correct SVG <img>'s * * SVG Support is adding a width and height of 1 on all SVG images in * the site. */ remove_filter('wp_get_attachment_image_src', 'bodhi_svgs_dimension_fallback', 10);
This functions appears to be setting the height and width of SVG images to 1 to “fix for division by zero error for SVGs”. Disabling this solves the issue.
- This reply was modified 2 years, 9 months ago by Kevinleary.net.
- This reply was modified 2 years, 9 months ago by Kevinleary.net.
Forum: Fixing WordPress
In reply to: Comments wont work on static front page site.Hi Gene-steve,
Here are a few more things I’d suggest trying based on passed experiences. Looking at your site if I had to guess I’d say the problem is most likely related to #2: your theme may not support comments.
1. Make sure you have “Settings > Discussion” configured to “Allow people to post comments on new articles”
2. Make sure your theme has the comments_template() function configured. If you download your theme to machine and do a basic search within the theme folder for “comments_template” you should find it, most likely inside of a file called single.php. If you don’t find it then you may need to switch your theme.
3. Make sure your individual posts have not disabled comments for some reason. Check the “Discussion” box below the main post area. If you don’t see it then expand the “Screen Options” area (top right) and make sure “Discussion” is checked. (sounds like you’ve already done this, but mentioning here for anyone else referencing this in the future)
4. Rare circumstance, but it happened for me at https://www.kevinleary.net/blog/, make sure that your theme isn’t submitting a POST request to a non-https URL. This would result in a blank white screen when a comment is submitted.Hopefully this helps, and let me know how it goes.
-Kevin L.
Forum: Plugins
In reply to: [Polylang] Polylang Conflicts with Avada ThemeI believe this is the best way to approach this:
/** * Disable Unique Theme Options Per Language */ function _avada_disable_lang_options() { if ( is_child_theme() ) { $temp_obj = wp_get_theme(); $theme_obj = wp_get_theme( $temp_obj->get('Template') ); } else { $theme_obj = wp_get_theme(); } $theme_name = $theme_obj->get('Name'); define( 'OPTIONS', $theme_name . '_options' ); define( 'BACKUPS', $theme_name . '_backups' ); } add_action( 'init', '_avada_disable_lang_options' );
I’m using this successfully in a child theme without issues. A note to the folks at Avada: if I wanted a unique website for every translation I would create a unique website for every language.
Any interest in elaborating on what is “not working like it should” Justin? Can you provide a link to a demo of the problem your having?
Forum: Plugins
In reply to: [Responsive Video Embeds] Not working after update 1.2.4It’s actually a concatenation issue with
$html
, very close to where sunscream has mentioned. Version 1.2.5 was just released and fixes the issue.Forum: Plugins
In reply to: [Responsive Video Embeds] Doesn't work. (Vimeo)The site mentioned above appears to have pasted an
<iframe>
directly into the editor. The method provided by the plugin relies on WordPress’s auto-embed capabilities, without it there’s no reliable way to resize your videos properly.Forum: Plugins
In reply to: [Responsive Video Embeds] 0px height since update to 1.2.1A fix for this issue specifically has just been rolled out as version 1.2.3. The plugin now properly specifies only
object
,embed
, andiframe
tags inside of a<div class="rve">
container be resized. Props to theschnuffel for providing feedback on this.A fix for this issue specifically has just been rolled out as version 1.2.3. The plugin now properly specifies only
object
,embed
, andiframe
tags inside of a<div class="rve">
container be resized.Forum: Plugins
In reply to: [Responsive Video Embeds] Not working with YouTubeAre you sure you’re using this specific plugin and that it’s activated? The source code of your theme looks otherwise. This plugin will wrap embeds with:
<div class="rve" data-content-width="640">...</div>
And will also load external JavaScript (
/wp-content/plugins/responsive-video-embeds/js/rve.min.js
, which I don’t see in your site.It’s fully supported up to 3.7.1.
Forum: Plugins
In reply to: [Visual Editor Biography] What about suggesting adding this feature to core?Not a bad idea, although limiting a profile to plain text has it’s merits.
Forum: Plugins
In reply to: [Visual Editor Biography] shortcodesThe output from the plugin isn’t processed by
do_shortcode()
, but you could easily add it as a filter or use it to directly enable shortcode functionality in your theme: https://codex.www.ads-software.com/Function_Reference/do_shortcode.Forum: Plugins
In reply to: [Visual Editor Biography] More on Feature Request: Limit Character CountYou could run the output through
wp_trim_words()
to achieve this: https://codex.www.ads-software.com/Function_Reference/wp_trim_wordsForum: Plugins
In reply to: [Browser Screenshots] How to store the shot localThis could be done using the
media_sideload_image()
function, possibly attached to thesave_post
hook.