Home › Forums › General Issues › Write an ACF Image to the WP Site Logo and Site Icon › Reply To: Write an ACF Image to the WP Site Logo and Site Icon
Quick addendum to this thread because I used it today to update the site_icon
. It seems the custom_logo
is set by using theme_mod
, not update_option
(did not work for me).
The complete code for updating the website logo should be:
set_theme_mod('custom_logo',get_field('field_name','options', false), true);
Hopefully this helps someone.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.