Center Sidenavigation - Question | JoomShaper

Center Sidenavigation

MN

Michael Nolden

Template 4 years ago

Hi there (again),

first of all, you are great! Its so helpfull how and how fast you react on every question! I already postet a very positive review.

Here is my next question:

How can I set the sidenavigation-bar (from main-articles (component)) to the center? --> see screenshot

https://ibb.co/v4Zv0z8

0
10 Answers
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #24150

I have added the screenshots of the steps below for your kind reference, you can take a look.

  1. Go to Extensions -> Templates -> Styles templateex.JPG

  2. Select your template default.JPG

  3. Click on Template options template options.JPG

  4. If you are using Helix ultimate based template, you will see this page and the Custom Code section to add the csscustomcss.JPG

0
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #24133

Hello

Thank you for your kind appreciation :)

And thank you for providing the screenshot as well, let me have a look.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #24135

Hi, Danke.

I think also this time we can help you quickly and efficiently.

Use custom CSS:

.pagination {
    display: flex;
    justify-content: center;
}

After:

foto_6424_2021.jpg

0
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #24136

Please use the following code in Custom CSS section.

.pagination {
    float: none;
    margin: 0px auto;
    display: block;
    width: max-content;
}

Please go to Extensions -> Templates -> Styles, then click on Template Options. From there you can go to Custom CSS.

It will look like this:

center-paginnation.JPG

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #24139

And to add small margin between article blocks use also this line:

@media (min-width: 768px) {
.item.col-sm-6 {width: 48.5%; margin: 0 0.5%;}
}

To make Main Menu items more dark (and by the way improve accessibility) use:

.sp-megamenu-parent > li > a {
    color: #333;
    font-size: 15px;
    padding: 0 14px;
    font-weight: 600;
}

foto_6423_2021.jpg

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #24141

BTW

If you have few minutes please give us review on JED https://extensions.joomla.org/extension/sp-page-builder/

0
MN
Michael Nolden
Accepted Answer
4 years ago #24145

Wow, so many nice helpfull answers, thanks a lot!

I feel ashame to ask one more question and hope for your understanding cause I am a teacher an not an professional IT-Admin. Where do I post these CSS- lines? Sorry for that silly question!!

0
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #24147

Hello

No problem at all :)

Please go to Extensions -> Templates -> Styles, then click on Template Options. From there you can go to Custom CSS and add the code

0
MN
Michael Nolden
Accepted Answer
4 years ago #24149

I cant believe how easy this works!!! Seems that I am learning CSS with your help! You are so great, thanks sooo much!

0
Ariba
Ariba
Accepted Answer
Support Agent 4 years ago #24151

You are most welcome, we are always happy to help.

Please do let us know if there are any other queries, i am happy to provide assistance.

If there is no other issue, kindly accept the most useful answer as you want in order to close and resolve the post.

Have a nice day.

0