Lists titles with H1

7 years 3 months ago #289701 by mk3
Lists titles with H1 was created by mk3
In the php code I see, that the Lists Titles are inside H3 tags.
to make them H1 I need to change H3 to H1 in the code.
The problem is that I vave to do this each time an update of CB is out there.
Is there other possibility to do that once?

Please Log in to join the conversation.

7 years 3 months ago #289754 by krileon
Replied by krileon on topic Lists titles with H1
I recommend overriding the CSS with h1 styling. Example as follows.

.cb_template .cbUserListTitle h3 {
	font-size: 36px;
}

See the below on how to add CSS overrides.

www.joomlapolis.com/blog/kyle/18711-template-css-overrides-made-easy


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

7 years 3 months ago - 7 years 3 months ago #289814 by mk3
Replied by mk3 on topic Lists titles with H1

krileon wrote: I recommend overriding the CSS with h1 styling. Example as follows.

.cb_template .cbUserListTitle h3 {
	font-size: 36px;
}

See the below on how to add CSS overrides.

www.joomlapolis.com/blog/kyle/18711-template-css-overrides-made-easy


Thank's. But here two more questions:

1) And would it be the same if inplace of using override.css, I will supply my custom CSS code to the Joomla user.css file (it's the override file for Joomla template) - I mean I've already done that and it works. Is it a good idea?
2) And what should I do if I need to automatically append some text to all of my Lists Titles? To do this I've modified a bit the PHP file. But also those changes would be lost on each update of CB... Is there a way?
3) Same as for "2)" but for user profile Titles - the standard title is the complete name of the user, I've added some text to the PHP code, so there is some custom text right before and right after the users name.

Please Log in to join the conversation.

7 years 3 months ago #289828 by krileon
Replied by krileon on topic Lists titles with H1

1) And would it be the same if inplace of using override.css, I will supply my custom CSS code to the Joomla user.css file (it's the override file for Joomla template) - I mean I've already done that and it works. Is it a good idea?

Yes, that's fine.

2) And what should I do if I need to automatically append some text to all of my Lists Titles? To do this I've modified a bit the PHP file. But also those changes would be lost on each update of CB... Is there a way?

I recommend just editing the userlist titles. Otherwise you can try using CSS if you don't need translations for it.

.cb_template .cbUserListTitle h3:before {
	content: "Hello! ";
}

3) Same as for "2)" but for user profile Titles - the standard title is the complete name of the user, I've added some text to the PHP code, so there is some custom text right before and right after the users name.

The profile title as seen in the canvas is a language string. So you can use a language string override to add more text to it my overriding the language key _UE_PROFILE_TITLE_TEXT. Alternatively you can just edit the "User Profile Title text" parameter by editing the "User Profile Page Title" tab in CB > Tab Management. See the below regarding language overrides in CB.

www.joomlapolis.com/blog/kyle/18712-language-key-and-text-finder


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

7 years 3 months ago - 7 years 3 months ago #289871 by mk3
Replied by mk3 on topic Lists titles with H1
Ok, I see.
Could you help a bit here?

For "3)":

I need to change
<h3> . sprintf( $title, $name ) . '</h3>
to
<h1>Specialist ' . sprintf( $title, $name ) . ' (City&nbsp;' . $user->cb_city . ')</h1>
So for "<h1>" - I do it by css override, ok.
For the text itself I'll have to write in language string override:
Specialist %s (City [cb_city])
Am I right?
But how do I insert the "nbsp;" there?

For "2)":

I need the list title to be in 2 lines:
<h1>My list title #1</h1>
<h2>in Moscow</h2>

<h1>My list title #2</h1>
<h2>in Moscow</h2>

and so on....

Need help for these two questions. Thank you!

Please Log in to join the conversation.

7 years 3 months ago #289910 by krileon
Replied by krileon on topic Lists titles with H1

Am I right?
But how do I insert the "nbsp;" there?

Don't understand the question. You'd have a language override as follows. If you need to add a space simply add a space to the string. That language string is passed through substitutions so you'd just substitute in the city field.

Key: _UE_PROFILE_TITLE_TEXT
String:
Specialist %s (City [cb_city])

I need the list title to be in 2 lines:
<h1>My list title #1</h1>
<h2>in Moscow</h2>

<h1>My list title #2</h1>
<h2>in Moscow</h2>

and so on....

You can try closing the h3 and opening another. Example as follows.

My list title #1</h3><h3>in Moscow

This should be allowed as it's an entirely admin provided string. You'll need to use CSS to change their styling to h1 and h2 though.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.225 seconds