| bio | website | harm.co.at |
|---|---|---|
| location | Vienna, Austria | |
| age | ||
| visits | member for | 1 year, 5 months |
| seen | May 18 at 19:14 | |
| stats | profile views | 9 |
|
Mar 6 |
awarded | Popular Question |
|
Mar 3 |
awarded | Teacher |
|
Dec 12 |
answered | Conditionally Loading JavaScript/CSS for Shortcodes |
|
Jul 3 |
awarded | Supporter |
|
Feb 5 |
comment |
check for shortcode in post/pages AND widgets AND template files yes, that´s a solution I already thought about. But what about css-files? If the additional css file gets loaded in the footer and the corresponding html before (not the javascript - I mean the divs for the map), it wont work, will it? Doesnt it have to be loaded before the html it was made for? |
|
Feb 5 |
comment |
check for shortcode in post/pages AND widgets AND template files it gets loaded after the js for the map, resulting in the map not showing up |
|
Feb 3 |
comment |
check for shortcode in post/pages AND widgets AND template files thanks for your help - I tried your solutions with wp_enqueue_styles within my shortcode-function, unfortunatley, there is the following problem: add_action('wp_enqueue_scripts', array(&$this, 'lmm_frontend_register_scripts'),3);
....
function lmm_frontend_register_scripts() {
wp_register_script( 'leafletmapsmarker', LEAFLET_PLUGIN_URL . 'leaflet-dist/leaflet.js', $deps='', NULL, FALSE ); (--> last false for not attaching to footer)
...
shortcode-function:
...
wp_enqueue_script( 'leafletmapsmarker' );
--> js always gets embedded in footer :-( |
|
Jan 31 |
revised |
check for shortcode in post/pages AND widgets AND template files deleted 26 characters in body |
|
Jan 31 |
asked | check for shortcode in post/pages AND widgets AND template files |
|
Jan 11 |
asked | What is the best way to get directory path for wp-config.php? |
|
Dec 20 |
awarded | Editor |
|
Dec 20 |
revised |
What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory? added 532 characters in body |
|
Dec 20 |
comment |
What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory? thanks - that was the problem. Here is the code I use now - I added a switch for multisite installation so that the directory only gets copied once - I added the code above. |
|
Dec 19 |
awarded | Student |
|
Dec 19 |
asked | What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory? |