Add Text to Portfolio Page above filters

I would like to add some content to the portfolio page (the archive page, not individual posts). I’m using Integrity stack. I would like to use the native portfolio functionality and just add a content area above. Can you assist me with this? Thanks!

Hi there,

You will have to a a slight customization to the template files to do this.

First, you will need to have the child theme installed and activated. You can get information from here:

https://theme.co/apex/child-themes

Once the child theme is active, login to FTP then open the directory path \wp-content\themes\x\framework\legacy\cranium\headers\views\YOUR_STACK then copy the file _landmark-header.php and place it to \wp-content\themes\x-child\framework\legacy\cranium\headers\views\YOUR_STACK

Notice that you are getting the file from the parent theme which is x and copying it to the child theme which is x-child.

Then open and edit the file _landmark-header.php that is in the child theme. Scan the codes and look for the following lines:

<?php elseif ( x_is_portfolio() ) : ?>
  <?php if ( $disable_page_title != 'on' || $disable_filters != 'on' ) : ?>

    <header class="x-header-landmark x-container max width">
      <?php if ( $disable_page_title != 'on' ) : ?>
        <h1 class="h-landmark"><span><?php the_title(); ?></span></h1>
      <?php endif; ?>
      <?php x_portfolio_filters(); ?>
    </header>

  <?php endif; ?>

Add your custom code above the <?php x_portfolio_filters(); ?> line.

Hope this helps.

This worked! Thank you so much!

You’re most welcome.

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