Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1180488
    qualalbatroz
    Participant

    Hi there, I’ve managed to add some text to the portfolio page, by adding the following code to the file “template-layout-portfolio.php” of my x-child theme

    <?php x_get_view( 'global', '_content', 'the-content' ); ?>

    after

    <div class="<?php x_main_content_class(); ?>" role="main">

    And then adding the text to the content area of the porfolio page (just like stated here in the forum)

    You can check the result here:
    http://qualalbatroz.pt/accao-educativa/

    But I would like to put the text above the navigation area and below the page title.

    How can I accomplish this?

    Thanks!

    José

    #1180734
    Nico
    Moderator

    Hi There,

    Thanks for writing in.

    Not sure where you want it to be added. Would you mind sharing us a screenshot to where you want to add it.

    To add text in the header part you need to add code in your child theme /framework/views/_stack_name_here_/wp-header.php

    Hope it helps. Let us know how it goes.

    Thanks.

    #1180955
    qualalbatroz
    Participant

    Hi there,

    I’ve added a print screen with the explanation.

    Thanks

    José

    #1180999
    Christian
    Moderator

    Copy _landmark-header.php located in x\framework\views\integrity to the same folder in your child theme x-child\framework\views\integrity. Add your text below

    <?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>

    Hope that helps. 🙂

    #1181794
    qualalbatroz
    Participant

    Thanks! That worked perfectly. I just had to change the code I had put on “template-layout-portfolio.php”

    <?php x_get_view( 'global', '_content', 'the-content' ); ?>

    to the file and place you pointed me to and it’s done.

    Thanks!

    José

    #1182094
    Jade
    Moderator

    You’re most welcome José.

  • <script> jQuery(function($){ $("#no-reply-1180488 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>