TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,972
  • Latest: Lineo
Stats
  • Total Posts: 196,091
  • Total Topics: 21,343
  • Online today: 862
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 633
  • Total: 633

Header Space

Started by Itchdog, October 28, 2026, 02:14:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Itchdog

This is more of a "please help!" post than a need for tech support. I've gotten the software to work, and it works well. But there's a few small things that are bugging me. See the attached. The article block (the one that says "Orlando & Central Florida") is set to show with both the left and right sidebars. There is a space above the article that pushes it down. I checked the theme settings, an nowhere can I find anything that would post a single space. There are no blocks set to show above the article. It's driving my OCD nuts. Does anyone know how to get rid of that space?

One note: The article is actually just code to show an iframe with a php script from the server:

<iframe
    src="https://centralfloridian.com/rssnews.php"
    width="100%"
    height="700"
    style="border: none;"
    title="Embedded webpage">
</iframe>

@rjen

Can you share a link to the page in question?
Running Latest TP on SMF2.1 at: www.fjr-club.nl


lurkalot

Does look a bit strange that that empty header still shows. 

I'm curious though why you don't just put your code in a Center panel block?  It would look like this https://cctestsite.com/testsite2/index.php

@rjen

Yeah, I think that is actually a css bug that can be fixed in a next release. It is indeed an empty Div either a padding as a result of switching of the header
Running Latest TP on SMF2.1 at: www.fjr-club.nl

@rjen

Quote from: @rjen on October 28, 2026, 06:08:48 PMYeah, I think that is actually a css bug that can be fixed in a next release. It is indeed an empty Div either a padding as a result of switching of the header

No, it is not a bug as such.

Just checked what you are doing and you are trying to remove the title by suppressing the header styles and switching all content off.
Problem is that de header div still needs to be there with the padding: the header does not 'know' you removed all contents..

Maybe I can fix it, it it will mean changing some more stuff on the templates and css... Lukalots suggestion is simpler...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Itchdog

Quote from: lurkalot on October 28, 2026, 05:37:00 PMDoes look a bit strange that that empty header still shows. 

I'm curious though why you don't just put your code in a Center panel block?  It would look like this https://cctestsite.com/testsite2/index.php

I just want the news to show when a user clicks the link. That's why I have it set to pull up the article with the iframe.The article is set to show the left and right panels so it kind of looks like it's still the main page. But that gap at the top kind of gives it away, lol. I just wish there was a checkbox in the article settings to show the front panel blocks as well.

@rjen

Quote from: Itchdog on October 28, 2026, 11:54:49 PM
Quote from: lurkalot on October 28, 2026, 05:37:00 PMDoes look a bit strange that that empty header still shows. 

I'm curious though why you don't just put your code in a Center panel block?  It would look like this https://cctestsite.com/testsite2/index.php

I just want the news to show when a user clicks the link. That's why I have it set to pull up the article with the iframe.The article is set to show the left and right panels so it kind of looks like it's still the main page. But that gap at the top kind of gives it away, lol. I just wish there was a checkbox in the article settings to show the front panel blocks as well.

The front panel no, but what you can do is use the top or center panel instead...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Itchdog

QuoteThe front panel no, but what you can do is use the top or center panel instead...

Thanks for the advice. I did it. But the gap above the article is even more noticeable: https://centralfloridian.com/index.php?page=7

Itchdog

Quote from: @rjen on October 28, 2026, 06:08:48 PMYeah, I think that is actually a css bug that can be fixed in a next release. It is indeed an empty Div either a padding as a result of switching of the header

Is there a file I can edit to eliminate the padding? I have a couple of articles that show as pages when the user clicks the links.

Quote from: @rjen on October 28, 2026, 06:52:45 PMJust checked what you are doing and you are trying to remove the title by suppressing the header styles and switching all content off.
Problem is that de header div still needs to be there with the padding: the header does not 'know' you removed all contents..

Is there a setting that I can try that may help with this? I've been playing with the layout but haven't been able to find anything that works.

lurkalot

Sorry, I could have sworn you were adding that article to the front page, that's why I suggested the Center Panel Block. Obviously that won't work for a article page. 

Can you go to SMF admin and turn off the, "Minimize CSS and JavaScript files" so we can take a look at the css. Also if you have that option on you might not see any manual changes you make to the css.

Admin > Configuration >>  Minimize CSS and JavaScript files

You can turn it back on when finished.

Itchdog

#11
Got it. I unchecked the box. If it's easier to live chat to mess with this, use the Chat link in the forum and join the #Orlando chat room.

*edit: On second thought, maybe we should keep it here so others can benefit from the conversation.

lurkalot

I played around with the css and although it can be slightly improved, until that empty div is gone you can't fix it completely, or at least I can't with my limited knowledge.

I would personally like to see that empty space disappear when not using the title the same way as the blocks behave.

tino

display: none;
On the div element should hide it and remove any whitespace.

If not unset the element causing the spacing.

@rjen

Quote from: tino on October 30, 2026, 05:43:47 PMdisplay: none;
On the div element should hide it and remove any whitespace.

If not unset the element causing the spacing.

Just beat me to it..

in tp-style.css find

.tp_nodivheader {
    padding: 12px 16px;
}

and update to

.tp_nodivheader {
    padding: 12px 16px;
    display: none;
}
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Itchdog

Hmm. I tried it but it had no effect. I have the "Minimize CSS and JavaScript files" unchecked, and cleared my cache.

Here's what's in my tp-style.css:

.tp_nodivheader {
    padding: 12px 16px;
    display: none;
}

There is still a gap between the blocks and the article:
https://centralfloridian.com/index.php?page=7

@rjen

The header is now gone, but there is a slight space left as a result of the tp_article_info element

You cannot view this attachment.
Running Latest TP on SMF2.1 at: www.fjr-club.nl

Itchdog

That is strange. When I first made the edit the gap was the same. Today I see it is reduced. Oh well. It is an improvement, I'll take it  O0

Thanks for your help!

@rjen

I made a number of changes that will make sure the Title div is only called when the title is set to be displayed for the article. Secondly I also suppressed the article info div when no data is selected for the article..

This will remove the need to adapt the css on your site...

I have added these changes to the next TP version 3.0.4
Running Latest TP on SMF2.1 at: www.fjr-club.nl

This website is proudly hosted on Crocweb Cloud Website Hosting.