-
AuthorPosts
-
missyw Friend
missyw
- Join date:
- May 2008
- Posts:
- 171
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 98
- Thanked:
- 2 times in 1 posts
July 17, 2010 at 9:14 am #152618How can I get this template to display my site slogan as text/html underneath my logo.png image? (i.e. a mixture of both image and text for the logo).
I have created a logo image, and selected “logo-type = image” in my template parameters. But now, I would like to also display my slogan as text/html below the image. (This is because I am not very good at manipulating the image! 😮
I have done this successfully in another template by changing the index.php file so that it would display both the image and the text slogan. But I am at a loss with this template, as the index.php file doesn’t show any code for the logo.
Is there an easy way to do this (for dummies)? Any suggestions?
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 23, 2010 at 7:08 am #350528Hello
Pls open the file: templates/ja_norite/layouts/blocks/header.php and try to find the following code:
[PHP]
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
[/PHP]
replace:
[PHP]
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
<?php $sloganText = (trim($this->getParam(‘logoType-text-sloganText’))==”) ? JText::_(‘SITE SLOGAN’) : $this->getParam(‘logoType-text-sloganText’);?>
<p class=”site-slogan”><?php echo $sloganText;?></p>
[/PHP]
GOodluck1 user says Thank You to Saguaros for this useful post
July 25, 2010 at 9:30 am #350663Hi,
I am unable to change my logo. I created a new logo.png and replaced it in the right position, but still the default JA Anion logo shows up. When I change the type to text, nothing comes up. Only the word, “slogan”, is there.
Can you please help?
missyw Friendmissyw
- Join date:
- May 2008
- Posts:
- 171
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 98
- Thanked:
- 2 times in 1 posts
July 27, 2010 at 3:34 am #350805Dear Tienhc,
Brilliant!!! Thanks!:-*
missyw Friendmissyw
- Join date:
- May 2008
- Posts:
- 171
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 98
- Thanked:
- 2 times in 1 posts
July 27, 2010 at 3:44 am #350807<em>@shoumikdas 187538 wrote:</em><blockquote>Hi,
I am unable to change my logo. I created a new logo.png and replaced it in the right position, but still the default JA Anion logo shows up. When I change the type to text, nothing comes up. Only the word, “slogan”, is there.
Can you please help?</blockquote>
Hello1. Which color of the template are you using? You will notice in the templates/ja_norite/images folder there is a sub-folder for the different colors. For example, I am using the light-green color. So when I created my own logo, I replaced both the logo.png and logo2.png in the templates/ja_norite/images/light-green folder.
2. When you change the template logo type to text, you will notice that 2 additional fields appear below “Select logo type”. You must fill in your site name in the “logo text” field, and your site slogan in the in the “Slogan” field.
Good luck!
July 27, 2010 at 3:55 am #350809Hi missyw,
Thanks for the tip. I will check out the location of logo2.png as well. I am currently using the dark-red theme for JA Anion. However, for logo type=text, I have filled in both the fields with the site name and slogan, but still nothing is coming up. Can you advise?
missyw Friendmissyw
- Join date:
- May 2008
- Posts:
- 171
- Downloads:
- 0
- Uploads:
- 19
- Thanks:
- 98
- Thanked:
- 2 times in 1 posts
July 27, 2010 at 3:58 am #350811<em>@tienhc 187347 wrote:</em><blockquote>Hello
Pls open the file: templates/ja_norite/layouts/blocks/header.php and try to find the following code:
[PHP]
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
[/PHP]
replace:
[PHP]
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
<?php $sloganText = (trim($this->getParam(‘logoType-text-sloganText’))==”) ? JText::_(‘SITE SLOGAN’) : $this->getParam(‘logoType-text-sloganText’);?>
<p class=”site-slogan”><?php echo $sloganText;?></p>
[/PHP]
GOodluck</blockquote>Hello,
This is a wonderful solution for the home-page, thank you. But on the other pages (Getting Started, Blog, K2, etc.) the font-size for the Text slogan is way TOO BIG! (It becomes bigger than logo2.png, and wraps onto 2 lines!) Maybe this is too hard to fix, and I will have to work on modifying my logo images so they include my slogan. Please let me know what you think. Thanks for your help :-*
-
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by Saguaros 14 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum