602 reputation
413
bio website dynedrewett.com
location Devon, United Kingdom
age 32
visits member for 2 years, 8 months
seen Jun 14 at 0:32

I'm an IT admin for a firm of solicitors in the South West of England.


Jul
2
awarded  Curious
Jun
14
answered How do I add settings to the Background Options Page?
Jun
13
asked Make the customiser show all Background Image settings all of the time
Jun
10
comment How do I add settings to the Background Options Page?
Thanks for posting this, it's still useful even 20 months on.
May
27
comment Get the URL, width and height of an image where the width and height are a specified minimum
That looks good, thanks for the pointer.
May
21
revised paginate_links() adds empty href to first page and previous link
Correct an error in the 'base' argument
May
21
answered paginate_links() adds empty href to first page and previous link
May
21
comment Get the URL, width and height of an image where the width and height are a specified minimum
Thanks for the reply. I've already done just what you suggested for the add_image_size() in relation to cropping, which is fine going forward. However this unfortunately no good for images that had already been added before that size existed.
May
21
asked Get the URL, width and height of an image where the width and height are a specified minimum
May
2
answered Wordpress function to add text
May
2
suggested suggested edit on Echo array value
May
2
comment How do I enqueue styles/scripts on certain /wp-admin pages?
This answer is not technically correct. the Codex for admin_print_scripts() states "admin_print_scripts should not be used to enqueue styles or scripts." The answer by @TomAuger is actually the correct one, although not optimal. It would be beneficial if the WP team added an admin_enqueue_scripts-(hookname) hook though...
Apr
25
accepted Use the Settings API to whitelist a setting, but don't output it
Apr
25
comment Use the Settings API to whitelist a setting, but don't output it
Ah, I get it now. I Did use register setting for each setting (should have added to question), and then I was also outputting each setting using add_settings_field(). So I'll just register one setting (header_logo_margin), make one call to add_settings_field(), and in the callback for that add four inputs with names like header_logo_margin[top]. Job done, thanks for the kick that made me think straight!
Apr
25
asked Use the Settings API to whitelist a setting, but don't output it
Apr
22
comment Broken CSS after changing the site URL
@s_ha_dum - Well I can't get double slashes to break my test site, so I guess I must have imagined that... However, my answer is still technically correct ;-)
Apr
22
comment Broken CSS after changing the site URL
@s_ha_dum - I realise the stylesheet URL would not be broken, hence my reference to non-rewritten URLs. I'll do some testing now, as I'm sure I've come across issues with double slashes in the past...
Apr
22
comment Broken CSS after changing the site URL
@s_ha_dum - It depends on whether or not the URL has been rewritten. If it has, double slashes can still work (although not ideal). If not, essentially you are looking for a directory listing, so double slashes will not work.
Apr
22
answered Broken CSS after changing the site URL
Apr
22
comment Broken CSS after changing the site URL
Ah, the article states - "Note: Both settings should include the http:// part and should not have a slash "/" at the end." Your entries above do have a slash at the end, meaning the URL to your style-sheet will be in the format of `192.168.0.100/myblog//wp-content/themes/my-theme/style.css';