| bio | website | |
|---|---|---|
| location | ||
| age | ||
| visits | member for | 7 months |
| seen | yesterday | |
| stats | profile views | 31 |
|
Feb 27 |
answered | WP Nav Menu: String replacements |
|
Feb 27 |
comment |
WP Nav Menu: String replacements You’re probably right—it’s just because I’d like to keep the code as clean as possible. |
|
Feb 27 |
comment |
WP Nav Menu: String replacements Because I’d like to remove all the other (for me) useless classes and IDs that WP adds automatically like menu-item menu-item-type-post_type menu-item-object-page … |
|
Feb 27 |
asked | WP Nav Menu: String replacements |
|
Feb 9 |
awarded | Tumbleweed |
|
Feb 7 |
accepted | Allow editors to post iframes |
|
Feb 7 |
comment |
Allow editors to post iframes Ah, my fault, I had a wrong YouTube link … Thanks! |
|
Feb 7 |
comment |
Allow editors to post iframes I don’t know why but the [embed] code doesn’t work … |
|
Feb 7 |
asked | Allow editors to post iframes |
|
Jan 21 |
accepted | Using template tags in external JS file |
|
Jan 21 |
comment |
Using template tags in external JS file Yep, I manage to get it to work with wp_enqueue_script( 'custom_js', get_bloginfo( 'template_directory' ) . '/js/google-map.js' ); wp_localize_script('custom_js', 'wp_urls', array( 'template_dir' => get_bloginfo( 'template_directory' ) )); |
|
Jan 21 |
comment |
Using template tags in external JS file I manage to get it to work with wp_enqueue_script( 'custom_js', get_bloginfo( 'template_directory' ) . '/js/google-map.js' );
wp_localize_script('custom_js', 'wp_urls', array( 'template_dir' => get_bloginfo( 'template_directory' ) )); |
|
Jan 21 |
comment |
Using template tags in external JS filewp-head(); is called before the alert but there’s nothing added in the header by wp-head();. |
|
Jan 21 |
comment |
Using template tags in external JS file I changed every hyphen to an underscore—but it still doesn’t work. |
|
Jan 21 |
revised |
Using template tags in external JS file edited body |
|
Jan 21 |
accepted | Removing <p> tags around <div> tags |
|
Jan 21 |
asked | Using template tags in external JS file |
|
Jan 21 |
comment |
Removing <p> tags around <div> tagspreg_replace('/<p>((<div([^>]*)>)(.+)(<\/div>))<\/p>/iU', '$1', $content); works for me. Is that correct? What does this Uuis at the end of the string mean? |
|
Jan 21 |
comment |
Removing <p> tags around <div> tags Thanks for that! I’m afraid I forgot to mention, that I don’t want the <p> tags around text only shall not be removed—only the ones before <div> tags. |
|
Jan 21 |
asked | Removing <p> tags around <div> tags |