Skip to content

Commit

Permalink
v 3.14.1
Browse files Browse the repository at this point in the history
- Added support for custom logos.
  • Loading branch information
Darklg committed May 10, 2024
1 parent c3c8b6e commit d145af8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions inc/theme/default-items.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,12 @@ function wputh_display_title($main_tag = '', $main_tag_classname = '') {
$title_url = apply_filters('wputh_display_title__title_url', home_url());
/* Image */
$main_logo = apply_filters('wputh_display_title__title_image_url', '');
if (!$main_logo && has_custom_logo()) {
$main_logo_img = get_theme_mod('custom_logo');
if (is_numeric($main_logo_img)) {
$main_logo = wp_get_attachment_image_url($main_logo_img, 'full');
}
}
if (!$main_logo && has_header_image()) {
$main_logo = get_header_image();
}
Expand Down
1 change: 1 addition & 0 deletions inc/theme/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function wputh_custom_theme_setup() {
// Theme style
add_theme_support('custom-background');
add_theme_support('custom-header');
add_theme_support('custom-logo');

// Supporting HTML5
add_theme_support('html5', array(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wputheme",
"version": "3.14.0",
"version": "3.14.1",
"description": "WPUTheme",
"dependencies": {},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Theme Name: WP Utilities Base Theme
Theme URI: https://github.com/WordPressUtilities/WPUTheme
Update URI: https://github.com/WordPressUtilities/WPUTheme
Description: A Framework WordPress Theme
Version: 3.14.0
Version: 3.14.1
Author: Darklg
Author URI: https://darklg.me/
License: GPLv2 or later
Expand Down

0 comments on commit d145af8

Please sign in to comment.