掲示板

theme logo problem

12年前 に biswajit sarkar によって更新されました。

theme logo problem

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
I created a custom theme.
everyrhing working perfect except the logo....

I attach the logo from "Display Settings" but the logo still not appear in my theme.
I dnt find any thing wrong in my code .... anyone know why this happen..

for logo part my code is following

<h1 class="company-title">
<a class="logo" href="$company_url" title="#language("go-to") $company_name">
<span>$company_name</span>
</a>
</h1>
thumbnail
12年前 に Ravi Kumar Gupta によって更新されました。

RE: theme logo problem

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
Can you please check the logs for errors, if any? Also, are you able to see the updated logo in Display settings.?
12年前 に biswajit sarkar によって更新されました。

RE: theme logo problem

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
there is no error in log......
and yes Im able to the updated logo in display settings
thumbnail
12年前 に Ravi Kumar Gupta によって更新されました。

RE: theme logo problem

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
hmm.. are you working on LR6.0.x? Can you check with firebug for any missing resource in "net". It should appear unless css has some fault.

Check for this in firebug, something like should be in css

#heading .logo {
    background: url("/image/company_logo?img_id=0&amp;t=1330594533550") no-repeat scroll 0 0 transparent;
    display: block;
    font-size: 0;
    height: 76px;
    text-indent: -9999em;
    width: 209px;
}


One clarification though.. are you able to see old logo or no logo at all.. ??
12年前 に biswajit sarkar によって更新されました。

RE: theme logo problem

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
Ravi Kumar Gupta:
hmm.. are you working on LR6.0.x? Can you check with firebug for any missing resource in "net". It should appear unless css has some fault.

Check for this in firebug, something like should be in css

#heading .logo {
    background: url("/image/company_logo?img_id=0&amp;t=1330594533550") no-repeat scroll 0 0 transparent;
    display: block;
    font-size: 0;
    height: 76px;
    text-indent: -9999em;
    width: 209px;
}


One clarification though.. are you able to see old logo or no logo at all.. ??



in display settings I able to see the logo which i save but in home page only link is appear
thumbnail
12年前 に Ravi Kumar Gupta によって更新されました。

RE: theme logo problem

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
hmm.. which link.. and what about css, did you check that?
12年前 に biswajit sarkar によって更新されました。

RE: theme logo problem

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
Ravi Kumar Gupta:
hmm.. which link.. and what about css, did you check that?



I check the css..... it not shows in firebug...and the logo still not appear
12年前 に biswajit sarkar によって更新されました。

RE: theme logo problem

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
If I want to write that css "#heading .logo" in "custom.css"....how can write this class...anyone plz guide
thumbnail
12年前 に Ravi Kumar Gupta によって更新されました。

RE: theme logo problem

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
That is by default in css files in theme/css folder. If you want to put that, put in custom.css file. There should be a _diff folder in your custom theme. Put custom.css there in css folder.

For more search this site for themes development. If you still facing a problem after that.. let us know.

this should help you.. http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-liferay-them-7
12年前 に biswajit sarkar によって更新されました。

RE: theme logo problem

Regular Member 投稿: 166 参加年月日: 11/10/17 最新の投稿
Ravi Kumar Gupta:
That is by default in css files in theme/css folder. If you want to put that, put in custom.css file. There should be a _diff folder in your custom theme. Put custom.css there in css folder.

For more search this site for themes development. If you still facing a problem after that.. let us know.

this should help you.. http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-liferay-them-7



thanks for your support...
I solve the problem...
here is my code...i add the code (red)
<h1 class="company-title">
<a class="logo" href="$company_url" title="#language("go-to") $company_name"><img alt="" src="$company_logo">
<!--<span>$company_name</span>-->
</img>
</a>

</h1>
12年前 に Bradley Wood によって更新されました。

RE: theme logo problem

thumbnail
12年前 に Ravi Kumar Gupta によって更新されました。

RE: theme logo problem

Liferay Legend 投稿: 1302 参加年月日: 09/06/24 最新の投稿
hmm.. Thanks Bradley for the note.. I will take care of this in future.. emoticon
thumbnail
11年前 に Ádám T. Nagy によって更新されました。

RE: theme logo problem

New Member 投稿: 6 参加年月日: 12/06/01 最新の投稿
Hi,

I know it is a bit old thread, I just wanted to add something for the records:

To make the theme force to resize a logo image you can use:

#heading .site-title .logo.default-logo img {
    height: 32px;
    width: 100px;
    /*display: none;*/
}


Thank you for the tips by the way,
Adam