End of Support for Joomla 3 - Forum closed

[SOLVED] How to hide line between top-a and top-b

How to hide line between top-a and top-b was created by tstoneman

Posted 8 years 2 months ago #15223
I am using just the title in top-a on my home page. top-b will be used for a slider.

How does one hide the faint line or <hr> between the module rows top-a and top-b. I'm trying to tighten up the space, and can't find the code to modify. Also, I only want to do this between top-a and top-b, not the other module rows (top-c and top-d)

pmhs76.org (work in progress)

Please Log in or Create an account to join the conversation.

Replied by tstoneman on topic How to hide line between top-a and top-b

Posted 8 years 2 months ago #15227
Update:

I found the following lines in the layouts/theme.php file (around line 99):

<!-- Top Module A B C D -->
<?php if ($this->count('top-a + top-b + top-c + top-d')) : ?>
<?php if ($this->count('top-a')) : ?>
<section class="<?php echo $grid_classes; ?>" data-uk-grid-match="{target:'> div > .uk-panel'}" data-uk-grid-margin><?php echo $this->render('top-a', array('layout'=>$this->get('grid.top-a.layout'))); ?></section>
<hr class="style-one">
<?php endif; ?>
<?php if ($this->count('top-b')) : ?>

So it looks like I can comment out the line with <hr class="style-one"> and the horizontal rule goes away.

My concern is if I do this, and the template is updated down the road, I assume I would loose the change and have to find it again.

Is there a way to make this change which would not be impacted down the road, similar to the custom.css files?

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic How to hide line between top-a and top-b

Posted 8 years 2 months ago #15230
You can hide the "hr" if you insert this code into your css/custom.css

hr.style-one {
height: 0;
background:none !important
}

Please Log in or Create an account to join the conversation.

Replied by tstoneman on topic How to hide line between top-a and top-b

Posted 8 years 2 months ago #15232
Won't that effect the <hr> lines between all the module rows, or any other place which calls out that class? I just want to remove the ruler between top-a and top-b. I do not want to remove the rulers between top-b and top-c or top-c and top-d, or any other instances.

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic How to hide line between top-a and top-b

Posted 8 years 2 months ago #15263
Therefore you have to remove the "hr" code from layouts/theme.php
If you dont want to loose the customizing, please add you own theme.php to your default style folder:
Example:
template name/styles/blue/layouts/theme.php
The following user(s) said Thank You: tstoneman

Please Log in or Create an account to join the conversation.

Replied by tstoneman on topic [SOLVED] How to hide line between top-a and top-b

Posted 8 years 2 months ago #15264
Problem solved.

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License