Categories
Mastering Development

Learning React: how to useRef in custom component?

I’m learning React and I don’t think I understand the concept of useRef properly. Basically, I want to include some tags in tagify input field when a user clicks on a chip that is rendered outside the input box. My idea is to do something like this (App.js): import Chip from ‘@material-ui/core/Chip’; import Tagify from […]

Categories
CMS Mastering Development Wordpress

Theme functions.php file auto delete everyday

function.php file auto delete every day my host support tell me to check your security and id do the following thing but the problem doesn’t solve and I don’t know what else should do change xmpprx file permission to 0 wp-config permission to 400 wordfence plugin is installed this is my functions.php file content : […]

Categories
CMS Mastering Development Wordpress

Blog Posts – Title Missing

I’m attempting to troubleshoot where the title field isn’t showing. Instead, I am seeing tabs for Standard, Aside, Image, Video, Quote, Link, Gallery and Audio. (see pic) It seems that the issue just arose. Not sure if the client updated anything recently. Theme: Active Charity I’ve deleted all inactive plugins. Additional info: -Neither Screen Options […]

Categories
CMS Mastering Development Wordpress

Blog Posts – Title Missing

I’m attempting to troubleshoot where the title field isn’t showing. Instead, I am seeing tabs for Standard, Aside, Image, Video, Quote, Link, Gallery and Audio. (see pic) It seems that the issue just arose. Not sure if the client updated anything recently. Theme: Active Charity I’ve deleted all inactive plugins. Additional info: -Neither Screen Options […]

Categories
CMS Mastering Development Wordpress

Blog Posts – Title Missing

I’m attempting to troubleshoot where the title field isn’t showing. Instead, I am seeing tabs for Standard, Aside, Image, Video, Quote, Link, Gallery and Audio. (see pic) It seems that the issue just arose. Not sure if the client updated anything recently. Theme: Active Charity I’ve deleted all inactive plugins. Additional info: -Neither Screen Options […]

Categories
CMS Mastering Development Wordpress

Blog Posts – Title Missing

I’m attempting to troubleshoot where the title field isn’t showing. Instead, I am seeing tabs for Standard, Aside, Image, Video, Quote, Link, Gallery and Audio. (see pic) It seems that the issue just arose. Not sure if the client updated anything recently. Theme: Active Charity I’ve deleted all inactive plugins. Additional info: -Neither Screen Options […]

Categories
CMS Magento Mastering Development

Custom checkout value not getting saved in db

Hi am added two new columns in magento quote and sales_order but it is getting null value every time when i placed the order below is my observer and shipping code SaveOrderObserver.php <?php namespace Vendor\Module\Observer; use Magento\Framework\Event\Observer as EventObserver; use Magento\Framework\Event\ObserverInterface; use \Magento\Checkout\Model\Session as CheckoutSession; class SaveOrderObserver implements ObserverInterface { protected $checkoutSession; public function __construct(CheckoutSession […]

Categories
CMS Drupal Mastering Development

Custom view sort plugin not working only when used in table sorting

We have a view of committee memberships (= custom entity). The committee memberships hold references to the committee and the politician and have a field "role". In a view we want to output all committee memberships in a logical order: chairperson first, the vice chairperson, foreperson, spokesperson and member. As you can see alphabetical order […]

Categories
CMS Magento Mastering Development

Adding custom Fields to magento shipping

Hi am trying to add two custom fields on checkout but its not working am getting error while running compile commands Error:- Compilation was started. Service data attributes generation… 2/7 [========>——————-] 28% 50 secs 210.0 MiBPHP Parse error: syntax error, unexpected ‘-‘, expecting ‘(‘ in E:\xampp\htdocs\m2\generated\code\Magento\Checkout\Api\Data\ShippingInformationExtensionInterface.php on line 78 Parse error: syntax error, unexpected ‘-‘, […]

Categories
Mastering Development

ACF block moving

I’m using ACF Blocks on a site I’m building. I’ve registered my block via a plugin, like so: <?php function acf_blocks() { if( function_exists(‘acf_register_block_type’) ) { acf_register_block_type(array( ‘name’ => ‘intro-intro’, ‘title’ => __(‘Page Intro’), ‘description’ => __(‘Page intro block’), ‘render_template’ => plugin_dir_path( __FILE__ ) . ‘template-parts/blocks/page-intro/page-intro.php’, ‘category’ => ‘formatting’, ‘icon’ => ‘editor-textcolor’, ‘keywords’ => array( […]