MrLoubser Posted September 1, 2019 Share Posted September 1, 2019 Hey @tuanphan , This is York Template Specific, I'm looking to edit the Navigation Title's within each Index-Section with CSS if possible. For example, I'd like to turn this line: "Retailer Management Service —" Into: Retailer Management Service— Obviously, the template already has preset line breakpoints, but in a perfect world, I'd like to be able to break the line so each word is isolated on its own line, and have the ability to change the colour of each line of text. Eg: keep the text white and highlight the "—" Is this possible with just CSS? Thanks Link to comment
tuanphan Posted September 1, 2019 Share Posted September 1, 2019 @MrLoubser If you can insert this tag into Title <span>Here is</span><span>the Title</span> Then you can use CSS to change style of Here is and the Title Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
MrLoubser Posted September 1, 2019 Author Share Posted September 1, 2019 @tuanphan Ok, and from there how would you change the colour of each word or line? Sorry I didn't realise the text box changed what I meant - Please see attached (one line vs 4 lines). I did figure out a solution to break the lines of text up - if you add directly into the Navigation Title in between each word (it works too), I just don't know how to isolate and change the colour of each line of text - how would I isolate the dash under services to change its colour? Sorry if this doesn't make sense! Link to comment
tuanphan Posted September 1, 2019 Share Posted September 1, 2019 @MrLoubser <span style="color:red;">Here is</span><span style="color:green;">the Title</span> If you want break the line, you can use attribue: display: block; <span style="color:red;display:block;">Here is</span><span style="color:green;display:block;">the Title</span> However, If you need to do this for multiple titles, you should use the code below, which is better <span class="kl-line1">Here is</span><span class="kl-line2">the Title</span> Then add below code to Home > Design > Custom CSS .kl-line1 { color: red; display: block; } .kl-line2 { color: green; display: block; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
MrLoubser Posted September 1, 2019 Author Share Posted September 1, 2019 @tuanphan Ok, I understand adding the bottom code into the Custom CSS section, but could you please send me a screenshot or direction on where to insert into the title line of code? Would it be in the advanced settings of each index page? This is how I have the code atm (attached) - is this what you mean? Link to comment
tuanphan Posted September 1, 2019 Share Posted September 1, 2019 @MrLoubser Screenshot: https://prnt.sc/p0axlf Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
MrLoubser Posted September 1, 2019 Author Share Posted September 1, 2019 hmm, it doesn't seem to work - I must not be inputting it correctly, attached are screenshots of how I've set it up. The text box won't accept it if I isolate each word as there are more than 100 characters. Not really sure what to do from here. Link to comment
MrLoubser Posted September 1, 2019 Author Share Posted September 1, 2019 Attached is what I'm trying to achieve Link to comment
tuanphan Posted September 1, 2019 Share Posted September 1, 2019 @MrLoubser I saw you use line1 in Title, and line4 in Custom CSS... Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tuanphan Posted September 1, 2019 Share Posted September 1, 2019 @MrLoubser INTELLECTUAL PROPERTY MANAGEMENT<span class="kl-line">--</span> .kl-line { display: block; color: red; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
MrLoubser Posted September 1, 2019 Author Share Posted September 1, 2019 Yup, I just worked that out and the line of code needed to go in the Navigation Title rather than the Page Title. Link to comment
MrLoubser Posted September 1, 2019 Author Share Posted September 1, 2019 @Tuanphan You're a bloody Champion, I really appreciate your patience! Thank you. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.