HomeХобби и стильRelated VideosMore From: Garrett Sanderson

Building Websites With WordPress: ACF Plugin Part 5 - Options Page

73 ratings | 8059 views
In this video I show you how to set up an options page with ACF
Html code for embedding videos on your blog
Text Comments (7)
Ankita Mestry (4 months ago)
Can't add php in css. can you please guide me to resolve this blocker.
Sean Dorr (2 months ago)
Try writing the CSS inline in your PHP file. If, say, you have an image defined in CSS: --------------- OLD FILES PHP FILE <div class="image"> </div> CSS FILE .image { background-image: url(images/image.jpg); } ------------- NEW PHP FILE <div class="image" style="background-image:url(images/image.jpg);"> </div> ------------ From there, you should be able to add PHP like so: <div class="image" style="background-image:url(<?php the_field('image')) ?>"> </div>
Paul Miller (1 year ago)
Hi there, I've followded your tutorials so far but you've just lost me! My PHP file stucture is nothing like yours, my functions.php has 250 rows and is located at: public_html/wp-content/themes/harmonic/functions.php. I also don't have a folder called wpplugins with or without an empty functions.php file. What am I missing please?
Garrett Sanderson (1 year ago)
Paul, looks like you are using a different theme than I am. I am using a barebones wordpress theme, all the essential files that require a theme to be registered. So yes, your functions.php file will look different then mine. You need to install plugins in order to have a plugins folder.
Rezaul Karim (1 year ago)
i add acf theme setting option code my functions.php but dashbord no adding theme setting item pls help me
Daniel Kmec (1 year ago)
I have a same problem... did you find reason pls?
Garrett Sanderson (1 year ago)
+Rezaul Karim make sure your theme is set up correctly.

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.