Tag Info

New answers tagged

0

Pages cannot be explicitly "added" to the customizer - to view other theme templates, create pages first then click through the site links in the customizer view.


2

The base paradigm in WordPress is The Callback Handler. Actions, filters, widgets, metaboxes and so on … everything runs by registering specific callback handlers for some triggers. This is not always the most elegant way, but the one every beginner must learn, so stick to that paradigm, whenever you’re not sure what to do. So offer four actions: ...


2

Yes, that will get rejected. It's also wholly unnecessary, since you can use relative paths to the images in your CSS file, you don't need to have them dynamically generated.


1

vote_header_options_callback() is declared twice ! Trying to declare the same function name twice will cause a fatal PHP error. Give another name to your function.


-2

I ran in to this question while looking for something completly different. Also I know the question is already 2 years old. But since I have been coding/working with Google Fonts in Wordpress alot, I have come to realize: There is no need to replace the + in the link. On all browsers I tested the link works with a space too. In my php page where I load ...


0

I realised I didn't fully understand the link() function; now I realise that it links the control to the proper setting, making it problematic trying to point multiple controls to one setting. I modified my original function to instead add a hidden input that will hold my final value, along with the checkboxes. I then enqueued a small javascript that checks ...


2

If you've done everything correctly during the setup, then you should be able to load the logo_image option like this: $my_theme_prefix_option = of_get_option('logo_image');



Top 50 recent answers are included