Add slider to top of buddypress activity page - disable page title

Hey. I’ve used a .php snippet to add a slider to the top of my buddypress activity feed.

it’s not as clean as I’d like it to be, with some space at the top and the page title.

buddypress usurps control of the page, so I can’t just ‘hide page title’ in X, or for that matter, just use the X dropdown (which would be easier than a .php snippet).

However, I’ve got it working.

Question - how to remove page title and get the slider on this page flush with the top nice & clean? (on the activity feed page, I assume some .php to override buddypress)

https://www.intothemythica.com/mythos

Hello Peter,

Thanks for writing in!

Can you please share admin login details in secure note as the URL you shared is redirecting to login page?

Thanks.

Hey Prasant. Sent it. Sorry about that. I thought I’d turned that off so anyone could see the feed but I guess not.

Thanks :slight_smile:

Hi Peter,

This custom CSS can hide the page title:

.activity header.x-header-landmark {
    display: none;
}

Now, if you don’t want to use that CSS and you want to remove it from template, yes you need to edit this file:
\wp-content\themes\pro\framework\legacy\cranium\headers\views\ethos\_landmark-header.php
Copy that file on the same folder on your child theme here:
\wp-content\themes\pro-child\framework\legacy\cranium\headers\views\ethos\_landmark-header.php
Look for this part around line 31

     <?php if ( x_buddypress_is_component_with_landmark_header() ) : ?>

        <header class="x-header-landmark x-container max width">
          <h1 class="h-landmark"><span><?php echo x_buddypress_get_the_title(); ?></span></h1>
        </header>

      <?php endif; ?>

Add another filter that will hide it if you are on activity page. See this guide.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.