Support ForumMake a 2 lines custom Tagline via child theme and header.php file – Support Forum https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/feed/ Sun, 05 May 2024 13:51:07 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5091 <![CDATA[Make a 2 lines custom Tagline via child theme and header.php file]]> https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5091 Mon, 20 Oct 2014 05:27:17 +0000 mesonicpumpkin Hi Ishyoboy,

I wish to make a custom tagline (the one near the logo), basically what I wish to do is a custom wordpress tagline with 2 lines. if it’s not too hard can you please guide me on how am i to achieve this?

]]>
https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5098 <![CDATA[Reply To: Make a 2 lines custom Tagline via child theme and header.php file]]> https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5098 Mon, 20 Oct 2014 07:53:09 +0000 IshYoBoy Hi,

The tagline can be edited under “Settings” -> “General”.

To make the Tagline in two lines there are two options:

1. Either change it in the admin settitings and add somwthing like:

Tagline1<br>Tagline2

2. Hardcode it inside the header template

In both cases you will have to update the “header.php” file which is located in the root of the theme folder – wp-content\themes\boldial\header.php. We however recommend using the starter child theme we provided along with the main theme in order not to have to reproduce the changes on every theme update. To use the child theme do the following:

1. Prepare the starter child theme we provided
2. Copy the whole file “header.php” from the root of the parent theme to the root of the child theme. Meaning innto the folder “boldial-child”
3. Edit the file in the child theme with all changes explained in this topic
4. Upload it to your server
5. Activate the child theme

Sooo to make the necessary changes:

On line 141 you should see the following code:

$blog_tagline = get_bloginfo('description');

1. For case 1 you should change it to the following code to teach the theme to handle the “<br>” sign:
$blog_tagline = html_entity_decode( get_bloginfo('description') );

2. For case 2 you can do something like:

$blog_tagline = 'Tagline1<br>Tagline2';

Hope all is clear ;)

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5100 <![CDATA[Reply To: Make a 2 lines custom Tagline via child theme and header.php file]]> https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5100 Mon, 20 Oct 2014 08:10:02 +0000 mesonicpumpkin I went with option one, as it was the least difficult to mess up. worked like a charm, thanks for your help.

]]>
https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5105 <![CDATA[Reply To: Make a 2 lines custom Tagline via child theme and header.php file]]> https://support.ishyoboy.com/forums/topic/make-a-2-lines-custom-tagline-via-child-theme-and-header-php-file/#post-5105 Mon, 20 Oct 2014 18:37:22 +0000 IshYoBoy Sure thing ;) Glad we could help!

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>