html - wp_enqueue_style Does Not Behave As Documented -
add_action ('wp_enqueue_scripts', 'html'
मेरे पास ड्राइवर में लिखा गया है: Add_css_file '); फ़ंक्शन add_css_file () {// यह पहले की कोशिश की: // $ path = ABSPATH "/ WP-सामग्री / plugins / this_plugin / सीएसएस /"; // wp_register_style ('css_file', $ path.'css_file.css '); Wp_register_style ('css_file', 'http://subdomain.mysite.com/wp-content/plugins/this_plugin/css/css_file.css'); Wp_enqueue_style ('css_file'); }
स्ट्रिंग "css_file" दृश्य स्रोत HTML में प्रकट नहीं होता है और उसमें परिभाषित सीएसएस नियम प्रभावी नहीं होते हैं।
क्या आपने अपने पृष्ठ के wp_head ()
को और gt
में शामिल किया है? wp_head ()
आपकी कतारबद्ध शैली और स्क्रिप्ट को पृष्ठ पर जोड़ देगा।
Comments
Post a Comment