Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I add custom style ?
#1
Hello,

I want use GS for my next website. I have made the HTML/CSS template. It's very simple and the "basic" editor is enough. But I want use one class of my css and add it in the dropdown menu in the editor.

I just need add a span around the text whith this style :
Code:
<span class="my-class-in-css-file">Text</span>

I have read ckeditor wiki but I don't understand...

Can you explain me in "detail" please ?

Thanks Smile
Reply
#2
in line 50 zegnat-multilevelnavigation.php
Code:
echo '<li'.("$link->slug"==$a?' class="active"':($isActiveParent?' class="parent"':'')).'><a href="'.$link->url.'">'.$link->menu.'</a>';
replaced by
Code:
echo '<li'.("$link->slug"==$a?' class="active"':($isActiveParent?' class="parent"':'')).'><a href="'.$link->url.'"><span class="my-class-in-css-file">'.$link->menu.'</span></a>';
or in line 56
Code:
echo '<li'.("$link->slug"==$a?' class="active"':'').'><a href="'.$link->url.'">'.$link->menu.'</a></li>';
replaced by
Code:
echo '<li'.("$link->slug"==$a?' class="active"':'').'><a href="'.$link->url.'"><span class="my-class-in-css-file">'.$link->menu.'</span></a></li>';
Reply
#3
Thanks Oleg.

I find "better" solution. I modify the source and that's all. It's only 2 span to add so... I choose this solution for not break GS Smile
Reply




Users browsing this thread: 1 Guest(s)