Skip to content

marktimemedia/acf-theme-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

ACF Site Options & Customizer

Registers some default WordPress theme settings using Advanced Custom Fields Pro, with helper functions to include in the theme Adds additional logo settings to the WordPress Customizer

Theme Settings

In Customizer
  • Mobile Logo
  • Footer Logo
Global Defaults
  • Copyright Text (next to copyright year)
  • Additional Footer Text (like address, etc)
  • Default Image (if there is no post thumbnail)
Social Sharing
  • Social Media Buttons (to be used anywhere) Yes, Jetpack just released a similar feature, literally on the same day I built this for myself

Helper Functions

the_mtm_header_logo( $class = 'header-logo', $size = 'medium_large' ) Output header logo inside image tag, with link to homepage. Optionally specify image size and class. Falls back to Site Name if nothing is entered.

the_mtm_mobile_logo( $class = 'header-logo-mobile', $size = 'medium' ) Output mobile logo inside image tag, with link to homepage. Optionally specify image size and class.

the_mtm_header_text() Outputs header text if any exists

the_mtm_footer_logo( $class = 'footer-logo', $size = 'large' ) Outputs footer logo inside image tag, with link to homepage. Optionally specify image size and class. Shows nothing if nothing is entered.

the_mtm_footer_copyright() Outputs copyright text with year and date

the_mtm_footer_text() Outputs footer text if any exists

the_mtm_social_icons( $prepend = '', $showtext = false ) Outputs social icons with custom classes based on social network name. Compatible with Font Awesome if installed (you can prepend the fa- to the class).

the_mtm_post_thumbnail( $size = 'full', $class = '', $link = true, $attr ='' ) Outputs the post thumbnail inside a <figure> with a permalink to the post, with fallback for the default image

About

Theme settings page for WordPress with helper functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages