Category "wordpress"

Disable Gutenberg editor for certain page ids

I need to disable the gutenberg editor on the edit screen of certain pages. I know how to disable it for post types, like all pages: /**************************

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

I set up a 19% standard tax amount in my Woocommerce Online-Shop. Unfortunatley - now there is a text "estimated for Germany" behind the (includes 20,12 €.

wp_remote_get() not passing authentication

I've been trying to use wp_remote_get for the first time and having some troubles. So far I'm testing the response with this code: <?php

AWS EC2 Ubuntu File permissions issue

I'm running a EC2 instance with: Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-119-generic x86_64) Bitnami LAMP 5.6.30-5 My problem I have a Wordpress site that isn'

How to post data with fetch to functions.php

I am trying to make a fetch request to the functions.php file. I am trying to avoid jQuery and Ajax thats why I am using the standard fetch API. My code in one

How to find out the name of the theme that I'm using in wordpress from the database?

One of my site was infected with malware and has more than 20 templates installed and I can not remember the name of the template being used, I wonder if there

Show only featured products in Woocommerce shop page

I want to display in default shop page from WooCommerce only featured products, nothing more... It's there a solution to display in WooCommerce shop template on

Avada Wordpress Theme, cannot resize logo ( using cafe demo content )

I'm using the Avada Wordpress theme and have installed the Cafe Site Demo Content. I went into Appearance > Theme Options > Logo and uploaded my image lo

How to Prevent Spam Post/Articles in Wordpress?

I have a blog in my website using wordpress and noticed that there are spam posts such as bride, dating and other ads that are not related to my website. I don

Increase the Product Image Size in the Catalog Page

I know, this is a simple fix (it has to be), but I have been searching for two days and haven't been able to accomplish this. The products in the catalog page o

Facebook widget (by Milap Patel) how to translate the text?

im using the facebook widget for wordpress by: http://wordpress.org/extend/plugins/facebook-pagelike-widget/ on my blog, but I would like to translate or change

Pagination in custom archive.php page

I have created a custom archive.php page by adding some extra code to the default archive.php. I want to do pagination in that page but I don't know why it is n

Scrape key check failed. Please try again

I am not able to save the function.php file. I am getting one error Scrape key check failed. Please try again. I have disabled all the plugins even removed al

Advanced Forms (Free version) question notification email

I’m using the great Advanced Forms plugin (Version: 1.9.1) for Wordpress for a client. Therefore I have a question. How can I send the current page/post t

How to put php code inside opening and closing shortcodes

I am working on a site and I am using a shortcode in my template files that has an opening and close. I would like to know if its possible to place wordpress th

Minimum order amount except for specific shipping method in WooCommerce

In WooCommerce, I use the following code to set a minimum order amount: add_action( 'woocommerce_checkout_process', 'wc_minimum_order_amount' ); add_action( 'wo

Wordpress blog page featured image

I like to use the page's featured images in a background image in the header. When I add a new page and set the featured image, it appears as background image w

Wordpress: inserting author image/avatar as og:image in head

In a post template I'm using a little code to show the author's image/avatar instead of a featured image. <?php if ( $logo = get_avatar( get_the_author_meta

Limit WooCommerce products in cart only from one custom taxonomy

I'm trying to restrict customers on my Woocommerce store to only be allowed to order products from 1 "supplier" at a time. I am defining the "Supplier" by a cus

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

I am looking to overwrite this message via functions.php through a child's theme. I have seen some examples through here and here. I would prefer using a filte