Support Forums

Using both Logo and Site Title

This is a discussion on Using both Logo and Site Title within the Templates, HTML, CSS, and Design Help forums, part of the General category; Is there any way to keep the Site Title and Description text when adding a logo using template settings/logo settings ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 05-11-2010, 02:50 AM   #1
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default Using both Logo and Site Title

Is there any way to keep the Site Title and Description text when adding a logo using template settings/logo settings feature? When I add a logo, the text does not display and I don't want to add graphic text to the logo file.
art is offline   Reply With Quote
Old 05-11-2010, 05:22 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

You should be able to simply modify your layout.tpl file to pick up the title and description too.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 05-11-2010, 01:00 PM   #3
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default

Thanks for the reply I'm somewhat new to this. Would I add the tags to the actual layout file or the css file? What tags do I need to add?
art is offline   Reply With Quote
Old 05-11-2010, 03:03 PM   #4
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

You would want to edit your layout.tpl file. ALWAYS work from a backup COPY of the file in case things go wrong.

Around line 39 find this:
PHP Code:
<div id="logo">
    {if 
$template_logo <> ''}
    <
img src="photos/{$template_logo}" alt="{$template_title}" />
    {else}
    <
h1><a href="index.php">{$template_title|default:'68 Classifieds'}</a></h1>
    <
p>{$template_description|default:'Your site description'}</p>
    {/if}
</
div
This basically says, IF there is a logo image, use it. Otherwise, use the template title (if there isn't a template title default to "68 Classifieds") AND in the next line add the template description (if there isn't a Template description then use "Your site description").

I would do something like this IN PLACE of what I posted above, if I'm understanding what you are wanting to do:
PHP Code:
<div id="logo">
    <
img src="photos/{$template_logo}" alt="{$template_title}" />
    <
p>{$template_description|default:'Your site description'}</p>
</
div
That should do what you are after, again if I'm understanding you correctly.

Did I mention ALWAYS work from a backup COPY of the file in case things go wrong? Oh yea, I think I did!
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 05-11-2010, 10:27 PM   #5
Customer
 
Join Date: Jul 2006
Posts: 31
Rep Power: 0
Default

That worked. Thanks much
art is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Site Title Order freeze2 Technical Support 3 11-02-2009 01:17 PM
Site title redstar Technical Support 2 10-25-2009 04:56 PM
How to remove site title from email loudmouthclassifieds Technical Support 4 03-01-2009 10:35 PM
Remove Site Title from HTML Emails berg Technical Support 2 08-18-2008 07:57 AM
Replacing logo title suresh Technical Support 2 07-17-2008 08:55 PM


All times are GMT -4. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0