This members-only tutorial provides the steps to create an options page using Advanced Custom Fields, adding a logo image field in the Options page and sending the image's URL to Oxygen.

Step 1

Install and activate ACF and Code Snippets plugins.

Go to Snippets > Add New.

Title: ACF Options Page

Code:

if ( function_exists( 'acf_add_options_page' ) ) {

    acf_add_options_page();

}

Set it to run only in admin.

Step 2

Go to Custom Fields > Add New.

Title: Sitewide

Add a logo image field with Image URL as the Return Value.

Set the group to appear on Options page.

Step 3

Go to Options in the admin left menu and upload your desired logo image.

Step 4

Snippets > Add New.

Title: Logo

Code:

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($37/month or $399 one-time).

Already a member? Log in below or here.

Need help implementing a tutorial in your site or want to hire me for custom work?

HIRE ME

Find the article helpful and wish to donate?

DONATE
magnifiercross
>
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram
%d bloggers like this: