Jump to content

How to remove the name of the forum section?


kysil

Recommended Posts

Posted

Edit your theme -> Templates -> forums -> index -> index.

Remove or comment this line:

{template="pageHeader" group="global" app="core" params="\IPS\Member::loggedIn()->language()->addToStack('forums')"}
Posted

Hmm I'm not sure, mine doesn't have that gap. Find the css classes on the top of the board to see if there's some padding or margin, or link your site so I can take a look.

Posted

Thank you!
And the last question :)
How to remove the distance appeared?

distance.thumb.png.96d0867e98d51b27d4991

​,

 

.ipsApp .ipsSpacer_bottom, .ipsApp .ipsSpacer_both {
    margin-bottom: 0px;
}

 

 

.

Posted

 

.ipsApp .ipsSpacer_bottom, .ipsApp .ipsSpacer_both {
    margin-bottom: 0px;
}

​This code should be added or insert or change?

I understand that here? :

CSS > Forums > Front > forums.css

Posted
.ipsApp .ipsSpacer_bottom, .ipsApp .ipsSpacer_both {
    margin-bottom: 0px;
}

​Hmm, some reason there is no effect ...

Posted

That's weird, I don't have that div, I can add widgets to the top of the board though, try adding a widget there, save, then remove it and save again.

Posted

Oh! Thank you all very much!
There was a block of "announcements", but it was empty. Now it appears!
Once again, thanks for your help! :thumbsup:

Posted

If you add this to your custom.css, @kysil, then you don't have to worry about hacking your templates:

body[data-pageapp=forums][data-pagelocation=front][data-pagemodule=forums][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}

 

Posted

If you add this to your custom.css, @kysil, then you don't have to worry about hacking your templates:

body[data-pageapp=forums][data-pagelocation=front][data-pagemodule=forums][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}

 

​thank you for this.

Posted

 

If you add this to your custom.css, @kysil, then you don't have to worry about hacking your templates:

body[data-pageapp=forums][data-pagelocation=front][data-pagemodule=forums][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}

 

​Please, how to change this for all Applications, or for someone?

body[data-pageapp=pages][data-pagelocation=front][data-pagemodule=pages][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=forums][data-pagelocation=front][data-pagemodule=forums][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=blogs][data-pagelocation=front][data-pagemodule=blogs][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=gallery][data-pagelocation=front][data-pagemodule=gallery][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=downloads][data-pagelocation=front][data-pagemodule=downloads][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=calendar][data-pagelocation=front][data-pagemodule=calendar][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=chat][data-pagelocation=front][data-pagemodule=chat][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=support][data-pagelocation=front][data-pagemodule=support][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=commerce][data-pagelocation=front][data-pagemodule=commerce][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}

Not working (

Posted

 

​Please, how to change this for all Applications, or for someone?

body[data-pageapp=pages][data-pagelocation=front][data-pagemodule=pages][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=forums][data-pagelocation=front][data-pagemodule=forums][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=blogs][data-pagelocation=front][data-pagemodule=blogs][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=gallery][data-pagelocation=front][data-pagemodule=gallery][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=downloads][data-pagelocation=front][data-pagemodule=downloads][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=calendar][data-pagelocation=front][data-pagemodule=calendar][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=chat][data-pagelocation=front][data-pagemodule=chat][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=support][data-pagelocation=front][data-pagemodule=support][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}


body[data-pageapp=commerce][data-pagelocation=front][data-pagemodule=commerce][data-pagecontroller=index] .ipsPageHeader 
{
    display:none;
}

Not working (

​.

For all of them ?

Just 1 tiny thingy ..

 

.ipsPageHeader h1 {
    display: none;
}

 

 

.

Posted

 

​Please, how to change this for all Applications, or for someone? <snip>

Not working (

​It's slightly different depending on which app you use. An easy way is to look at the source. For Blogs, for example, you see this:

<body class='ipsApp ipsApp_front ipsJS_none ipsClearfix' data-controller='core.front.core.app,core.front.widgets.manager' data-message="" data-pageApp='blog' data-pageLocation='front' data-pageModule='blogs' data-pageController='browse' itemscope itemtype="http://schema.org/WebSite">

In the forums app data-pageController was 'index', which is why just swapping the data-pageApp to 'blog' didn't work.

So to target the Blogs page you'd need:

body[data-pageapp=blog][data-pagelocation=front][data-pagemodule=blogs][data-pagecontroller=browse] .ipsPageHeader 
{
    display:none;
}

You'd need to take a similar approach with the other apps when trying to target them too.

Posted

I don't know the answer scientifically, but why should there be an effect? The Googlebot is still downloading a page which contains the same text. It's just that it doesn't display on the screen because of a class applied to a div.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...