掲示板

How to customize front end of the portlet without coding

7年前 に Seona Joung によって更新されました。

How to customize front end of the portlet without coding

New Member 投稿: 5 参加年月日: 16/07/22 最新の投稿
I am interested in customizing the navigation menu and the whole look of the page. As a non developer, what can I use to change the color and sizing of the menu bar?
I was looking at the Look and Feel feature and when change the background color, only the border color changes. Is the application display template the section where I would need to code in for customized look? I also tried using the advanced styling section of look and feel like below and it doesnt affect anything...

#yui_patched_v3_18_1_1_1471292394315_11719 {
background-color: blue;
}

Any help would be appreciated.
thumbnail
7年前 に Samuel Kong によって更新されました。

RE: How to customize front end of the portlet without coding

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
If you want to customize the whole look of the page, you really should look into creating a theme. However, if that's not an option, you can try these other options instead
  • Site Administration > Pages > Site Pages > Look and Feel : You can add custom CSS to the page.
  • {Any portlet} > Options > Look and Feel : Has various options for changing the look of a portlet


#yui_patched_v3_18_1_1_1471292394315_11719 {
background-color: blue;
}


You should avoid writing CSS rules that uses ids that start with "yui_patched..." These ids changes.
7年前 に Seona Joung によって更新されました。

RE: How to customize front end of the portlet without coding

New Member 投稿: 5 参加年月日: 16/07/22 最新の投稿
Hi Samuel,

I would like to customize a bit without creating a theme.

Under site administration, I see a section that says 'Insert custom CSS that is loaded after the theme. ' Can I still use this section to add simple css script without the theme? Which class/id should I use? I attempted to find this by using inspect element but wasn't able to get it to work.

Thank you!
thumbnail
7年前 に Samuel Kong によって更新されました。

RE: How to customize front end of the portlet without coding

Liferay Legend 投稿: 1902 参加年月日: 08/03/10 最新の投稿
Under site administration, I see a section that says 'Insert custom CSS that is loaded after the theme. ' Can I still use this section to add simple css script without the theme?


Yes. This is the first option I listed above.

Which class/id should I use? I attempted to find this by using inspect element but wasn't able to get it to work.


This really depends on what you're trying to change. Using your browser inspect element feature is definitely a good place to start. If you're having problems getting it to work, you can check with your browser's documentation or your browser's vendor.