Support

Account

Home Forums Gutenberg wp_enqueue_style in acf_register_block – where should styles appear?

Solving

wp_enqueue_style in acf_register_block – where should styles appear?

  • Hi,
    why are styles displayed in the header in the front-end and in the footer in the Gutenberg editor?

    acf_register_block( array(
    	'name'			=> 'my-custom',
    	//...
    	'enqueue_assets' => function () {
    		wp_enqueue_style('my-style', get_template_directory_uri() . '/css/my-style.css', array(), '1.0.0', 'all');
    	}
    ));
    
    
  • Keonhacai – tilebongda nhà cái, kèo bóng đá trực tuyến: kèo châu á, kèo châu âu, kèo hiệp 1, kèo tỷ số, kèo tài xỉu, tỷ lệ macao, malay.. đầy đủ chính xác trong ngày tại tilebongda.net

  • Kết quả bóng đá trực tuyến nhanh chính xác nhất Xem ket qua bong da trực tuyến cùng tin tức, nhận định, dự đoán ở các giải đấu bóng đá Anh, Pháp, Đức, Ý, … đầy đủ nhất

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.