Aoba Momouchi
Forum Replies Created
-
Forum: Plugins
In reply to: [Welcart e-Commerce] 「検証」で表示されるエラーを修正したいです。プラグインの更新が直接のきっかけのようですので、PayPal関連だとすれば重要】PayPal決済が変わりました!あたりが影響しているのではないでしょうか。
I confirmed the ticket #52768.
However, I found the following description in the above ticket.
Disabling iframe lazy-loading (source) remedies the issue and results in expected oEmbed post display behavior.
Why did NOT the code I quoted (disable lazy loading iframes) improve this problem…
Anyway I also hope this problem will be resolved.
- This reply was modified 5 years, 2 months ago by Aoba Momouchi.
- This reply was modified 5 years, 2 months ago by Aoba Momouchi.
In WordPress 5.7, iframes will be lazy-loaded by default. Due to this change, embedded objects may not be visible.
Below(last paragraph of the post) is an example code snippet which would disable lazy-loading iframes that embed YouTube videos within post content. Try disabling lazy-loading and see if it changes.
Forum: Everything else WordPress
In reply to: How to remove tick box for use of weak passwordsTry download functions.php file via pastebin. There is a download link.
https://pastebin.pl/view/5d92556cI want help you, but I have no good idea anymore..
Forum: Fixing WordPress
In reply to: Indent text in blockquote ?If there are multiple same specificity rules, then the last rule occurring in the stylesheet is applied.
In order, 1 is the lowest specificity and 5 is the highest.
- Element
- Class selectors
- ID Selectors
- Inline styles
- !important
In this theme, the specificity of “blockquote” element is overridden by “wp-block-quote” class selector specified elsewhere.
Therefore, if you want to specify style in the “blockquote” element, add “!important” as shown below. This may work.
margin-left: 20px !important;- This reply was modified 5 years, 2 months ago by Aoba Momouchi.
Forum: Everything else WordPress
In reply to: How to remove tick box for use of weak passwordsI think that error message did not come from PHP process.
In this case, you may have saved functions.php as text with BOM.
You shold save functions.php text file as UTF-8 Unicode(WITHOUT BOM).
What text editor do you using? Some popular text editors use UTF-8 with BOM as the default format to save text files.
Forum: Everything else WordPress
In reply to: How to remove tick box for use of weak passwordsThe safest location is the last line in functions.php.
Full code is here.
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_locale_css' ) ): function chld_thm_cfg_locale_css( $uri ){ if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) ) $uri = get_template_directory_uri() . '/rtl.css'; return $uri; } endif; add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' ); if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): function chld_thm_cfg_parent_css() { wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( ) ); } endif; add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 ); // END ENQUEUE PARENT ACTION add_action('login_init', 'no_weak_password_header'); add_action('admin_head', 'no_weak_password_header'); function no_weak_password_header() { echo"<style>.pw-weak{display:none!important}</style>"; echo'<script>document.getElementById("pw-checkbox").disabled = true;</script>'; }Also, will the new functions.php code remain active after installing a WordPress update? Since it’s a child theme, I guess it does
Of course, that’s why we use child themes. Not affected by updates.
Forum: Everything else WordPress
In reply to: Blog page menu link to Home pageFirst, I don’t understand meaning of “standard” or “static” link.
If you want to add custom link to the menu, this guide may be useful.
https://codex.ww.wp.xz.cn/WordPress_Menu_User_GuideForum: Fixing WordPress
In reply to: Hiding Install Directory IndexIf your web server is apache, you can use .htaccess file located in the sub-directory.
NOTICE: A bad .htaccess file may cause some problems.
For example, this is code that only allows access from the localhost.
order deny,allow
deny from all
allow from localhost
Forum: Fixing WordPress
In reply to: Change Media Upload Directory@gappiah
Thanks.
Bad config may cause any problem.
Be sure to use this method(options.php) at your own risk.Forum: Networking WordPress
In reply to: The best practice for multisites3 different sites are good to search engines and speed, as you might guess. It is also resistant to server accidents.
But you can run multiple sites with different domains by one WordPress. The easiest way is to use a plugin. A language can be set for each domain.
Multiple Domain
https://ww.wp.xz.cn/plugins/multiple-domain/- This reply was modified 5 years, 2 months ago by Aoba Momouchi.
Forum: Everything else WordPress
In reply to: How to remove tick box for use of weak passwordsFirst, the easiest way is to use the plugin…
If you don’t want to use any plugin, you shoud hide the option by css.
Paste below code to the functions.php of your theme (Divi child).
add_action('login_init', 'no_weak_password_header');
add_action('admin_head', 'no_weak_password_header');
function no_weak_password_header()
{
echo"<style>.pw-weak{display:none!important}</style>";
echo'<script>document.getElementById("pw-checkbox").disabled = true;</script>';
}
Forum: Fixing WordPress
In reply to: Indent text in blockquote ?Try this for left margin of whole blocks.
.wp-block-quote{
margin-left:20px;
}
If you want indent only the first line, try this.
.wp-block-quote{
text-indent:1em;
}
Forum: Everything else WordPress
In reply to: Membership with limited accessThis plugin may suit your purpose.
Simple Membership
https://ww.wp.xz.cn/plugins/simple-membership/- This reply was modified 5 years, 2 months ago by Aoba Momouchi.
- This reply was modified 5 years, 2 months ago by Aoba Momouchi.
Forum: Fixing WordPress
In reply to: Can’t resize the column width in Table BlockSet min-width in HTML table’s
<td>.CSS
.wp-block-table td{
min-width:10em;
}If you want to specify each table, add the class to the table block.