Skip to content

Commit 76c484f

Browse files
committed
Added option to change text on "Home" link
1 parent 09aea65 commit 76c484f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

resources/views/layouts/footer.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="container">
22
<div class="footer fadein" style="margin:5% 0px 35px 0px;">
33
@if(env('DISPLAY_FOOTER') === true)
4-
@if(Config::get('meta.display_link_home') != 'false')<a class="footer-hover spacing" @if(Config::get('meta.custom_link_home') != '')href="{{ Config::get('meta.custom_link_home') }}"@else href="{{ url('') }}/"@endif>Home</a>@endif
4+
@if(Config::get('meta.display_link_home') != 'false')<a class="footer-hover spacing" @if(Config::get('meta.custom_link_home') != '')href="{{ Config::get('meta.custom_link_home') }}"@else href="{{ url('') }}/"@endif> @if(Config::get('meta.custom_text_home') != ''){{Config::get('meta.custom_text_home')}}@else Home @endif</a>@endif
55
@if(Config::get('meta.display_link_terms') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/terms">Terms</a>@endif
66
@if(Config::get('meta.display_link_privacy') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/privacy">Privacy</a>@endif
77
@if(Config::get('meta.display_link_contact') != 'false')<a class="footer-hover spacing" href="{{ url('') }}/pages/contact">Contact</a>@endif

storage/templates/meta.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@
127127
'display_link_privacy' => 'true',
128128
'display_link_contact' => 'true',
129129

130+
// Enter a custom home link (for example, 'https://littlelink-custom.com').
130131
'custom_link_home' => '', // Leave empty to use default value.
131-
132+
// Changes the text on the "Home" link.
133+
'custom_text_home' => 'Home', // Leave empty to use default value.
132134

133135
/*
134136
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)