WPNewbie9090
Forum Replies Created
-
Forum: Plugins
In reply to: [underConstruction] [underConstruction] IPv6 supportThis seems to have been added to 1.17. However after updating the plugin it is giving the following errors:
Warning: inet_pton(): Unrecognized address in /var/sites/a/example.com/public_html/wp-content/plugins/underconstruction/ucOptions.php on line 114
Warning: inet_ntop(): Invalid in_addr value in /var/sites/a/example.com/public_html/wp-content/plugins/underconstruction/ucOptions.php on line 114
Not sure if this might be due to incompatibility with the theme? Checked the files and the lines of code appear as mentioned above :S
Forum: Fixing WordPress
In reply to: 301 redirect from non www to wwwGot it thanks so much! Really appreciate your help ??
Forum: Fixing WordPress
In reply to: 301 redirect from non www to wwwThanks leejosepho
Is this for search engines only (ie would this have any effect on load page if a user types mydomain.com on the browser) I already specified the preferred domain version on webmaster tools so the main search engines are already showing the www version
Also, should the code be added at the top of the htaccess file before # BEGIN W3TC Browser Cache and # BEGIN WordPress or inside the section:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Forum: Plugins
In reply to: [Yoast SEO] Yoast and Visual ComposerDoes anyone still have issues with the Yoast SEO page analysis? The latest VC version should be fully compatible with Yoast SEO, however I still have issues with the page analysis and word count. SEO is detecting all the words in the pages and reporting 0 keywords in the content :S Do you guys have the same issue?
I am using Impreza theme, like vegastriguy
Forum: Plugins
In reply to: [WP Super Cache] WP Super Cache CloudflareHi Brandon,
Ok, got it. Thanks a lot for your reply!
Forum: Themes and Templates
In reply to: [Albar] Remove sidebar from all the templateHi Kaira and Bojan,
I followed your steps and put the following code into my child’s stylesheet:
.woocommerce-page .content-area, .archive .content-area, .single .content-area, .search .content-area, .page-template-template-right-nav-sidebar-php .content-area, .page-template-default .content-area { width: 100%; } div#secondary { display: none; } .woocommerce #content { padding: 0; }
However, the sidebar doesn’t seem to move from my woocommerce product pages
https://www.tiikoni.com/tis/view/?id=195c845 I am using a booking system extension and followed the steps to link it to woocommerce: https://envato-help.dotonpaper.net/booking-system-wordpress-plugin/woocommerce I am not sure if this has anything to do with the code not working but disabling the booking plugin didn’t help either.Could you help me with this please? Are there any alternatives? Unfortunately since I am currently doing trials the site is in my localhost so I can’t share the link :S
Thanks!
Forum: Themes and Templates
In reply to: Child Theme / wp_enqueue_styleAfter reading your comment and https://codex.www.ads-software.com/Child_Themes again I understand that it is not necessary to add the
wp_enqueue_style( 'XYZ-child', get_template_directory_uri() . '/childstyle.css' );
Thanks a lot for your help it saved me!
Forum: Themes and Templates
In reply to: Child Theme / wp_enqueue_styleSo if I want to make style changes in the theme via a child style.css I would use
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'XYZ', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'XYZ-child', get_template_directory_uri() . '/childstyle.css' );
Is this correct or is there no need to enqueue the childstyle as it should load after the functions.php?
Forum: Themes and Templates
In reply to: Child Theme / wp_enqueue_styleThanks a lot for your fast clarification!
So if for example I used theme “XYZ”, my child theme can contain only the functions.php with the following code right?
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'XYZ', get_template_directory_uri() . '/style.css' ); }
I read that if the parent theme has many css files it is necessary to enqueue all the css files and the theme I am testing has css files in different subfolders. Would the code in the child functions.php be like this then?
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'XYZ', get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'XYZ', get_template_directory_uri() . '/cssfile1.css' ); wp_enqueue_style( 'XYZ', get_template_directory_uri() . '/cssfile2.css' ); }
I have been trying to understand how to use it correctly but the more I read, the more confused I get and on youtube all examples use the @import.
Thanks a lot in advance! ??
Forum: Themes and Templates
In reply to: Child Theme / wp_enqueue_styleHi respectyoda,
If I understood what you wrote correctly, if my child style.css has the correct parent theme name and template name in the header, there is no need to put the @import or create the functions.php like mentioned here https://codex.www.ads-software.com/Child_Themes am I right?
Also, am I correct to assume that the only file from the child theme that does not override its parent version is the functions.php since it loads before the parent one?
Thanks in advance!