Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Adding Custom Header in Liferay 7
and how to link css files and image inside portal_normal.ftl file
please help me out .
Thank you
Ram
When you say a custom header, do you mean a custom <head/> tag? or do you just mean the header as in a <div> that you put things in (site name, logo, navigation, etc).
Adding a css class is no different than any other application. All you have to do is add the <link> tag in the <head> section at the top of the file. If the References to external sites don't require anything special. If you are looking to add custom css (files) to your theme, then you should be using the _scss (Saas) format. The _custom.scss has a reference to the _main.scss .. and in there you can add to the list the file that you want to add. For example, you would add a file called _my-custom.scss, with your definitions. Then in the _main.scss, under the @import you would add "my-custom"
If I have understood your question, that should be all you need.
Hi Jardine,
Thank you so mach replying
css it is working fine but how to give image path (portal_normal.ftl)
i given css path portal_Normal.ftl file inside (<link rel="stylesheet" type="text/css" href="${css_folder}/css/font-awesome/scss/style.css">)
<a href="stay.html" class="mm-arr"><img src="$themeDisplay.getPathThemeImages()//images/b3.png" class="menuIcons" alt="" /></a>
i given link that ,it is not working image path
please help me
That should do it -- can you use the inspector to see what path is calculated and set on the <img src=""/>? You could try taking that path and putting it into a new tab. If you don't get the image back in the new tab, then it means your image is not where you think it is. Maybe share the path with us as well?
I also noticed that you have a double slash in there just before "images", not sure if that was just a typo or not.
Ramalingaiah. D:<a href="stay.html" class="mm-arr"><img src="$themeDisplay.getPathThemeImages()//images/b3.png" class="menuIcons" alt="" /></a>
I think, that should be:
<a href="stay.html" class="mm-arr"><img src="${themeDisplay.getPathThemeImages()}/images/b3.png" class="menuIcons" alt="" /></a>
${} for freemarker variables and only one / instead of two.
hth
Hi Christoph Rabel,
i given like that
<img src="$images_folder/logo.png" alt="" />
it is working fine
Thank you somach
Powered by Liferay™