Skip to content

Commit cd5ec60

Browse files
committed
Use images from Site Options
1 parent 552336e commit cd5ec60

6 files changed

Lines changed: 12 additions & 8 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.5.9
2+
3+
- Use images from Site Options
4+
15
## 1.5.8
26

37
- Testimonial block and login logo

components/site-footer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99

1010
// Site Footer Custom Fields
11-
// $logo = wp_get_attachment_image_src(get_field('footer_logo', 'option'), 'footer_logo');
12-
$logo = get_theme_file_uri('assets/img/logo-monogram-black.svg');
11+
$logo = wp_get_attachment_image_src(get_field('footer_logo', 'option'), 'footer_logo')[0];
12+
// $logo = get_theme_file_uri('assets/img/logo-monogram-black.svg');
1313
$contact = get_field('footer_contact', 'option');
1414
$socialHeadline = get_field('footer_social_menu_headline', 'option');
1515
$copyright = get_field('footer_copyright_text', 'option'); ?>

components/site-header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
*/
99

1010
// Site Header Custom Fields
11-
// $logo = wp_get_attachment_image_src(get_field('header_logo', 'option'), 'header_logo');
12-
$logo = get_theme_file_uri('assets/img/logo-black.svg'); ?>
11+
$logo = wp_get_attachment_image_src(get_field('header_logo', 'option'), 'header_logo')[0];
12+
// $logo = get_theme_file_uri('assets/img/logo-black.svg'); ?>
1313

1414
<header class="site-header">
1515
<div class="container">

inc/tweaks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ function custom_editor_styles() {
265265
// Customize Wordpress Admin
266266
// add login logo
267267
function custom_loginlogo() {
268-
// $logo = wp_get_attachment_image_src(get_field('header_logo', 'option'), 'header_logo');
269-
$logo = get_theme_file_uri('assets/img/logo-black.svg');
268+
$logo = wp_get_attachment_image_src(get_field('header_logo', 'option'), 'header_logo')[0];
269+
// $logo = get_theme_file_uri('assets/img/logo-black.svg');
270270

271271
echo '<style type="text/css">
272272
.login {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "f1-mission-bit",
3-
"version": "1.5.8",
3+
"version": "1.5.9",
44
"scripts": {
55
"build": "yarn test && yarn format && NODE_ENV=production gulp build && yarn build-js && yarn build-scss",
66
"build-js": "parcel build ./assets/js/theme.js --out-dir ./dist/ --no-content-hash --log-level 4 --public-url ./ --no-cache",

style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Theme URI: https://github.com/missionbit/f1-mission-bit
44
Author: Factor1 Studios
55
Author URI: https://factor1studios.com
66
Description: A custom WordPress theme for Mission Bit developed by Factor1
7-
Version: 1.5.8
7+
Version: 1.5.9
88
License: GPL-3.0
99
License URI:
1010
Text Domain:

0 commit comments

Comments
 (0)