Enable text at the top of a portfolio page

Homepage Community Forums Ally Theme Support Enable text at the top of a portfolio page

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14872
    Mark Scott
    Customer

      Hi Wes

      Happy new year to you!

      I have a question about the portfolio function in Ally 1.0.

      Is there a way to enable text to be added to the top of the page?

      #14907
      Wes
      Moderator

        You can copy the content from the new version of the portfolio template near the top of the file and paste it to your current version (if you’re not using the latest) –

        // Adds Page Title
        add_action( 'genesis_before_content', 'genesis_do_post_title' );
        
        //Adds Page Content
        add_action( 'genesis_before_loop', 'ally_do_portfolio_content' );
        function ally_do_portfolio_content() {
            echo '<div class="entry-content entry-portfolio" itemprop="text">' . get_post()->post_content . '</div>';
        }
        #14905
        Eric
        Customer

          The latest version of it has that function by default. Are you able to upgrade? Or is it an older version that already had customizations done to it?


          I create awesome sites for awesome people! Contact me if interested – ericsanchez1585@gmail.com

          #14910
          Mark Scott
          Customer

            @Eric, thanks for responding. It’s my sister’s site and I’ve customised a lot. I’m planning on upgrading it sometime later this year.

            @Wes, thanks. Worked perfectly.

            #14913
            Wes
            Moderator

              You’re Welcome!

            Viewing 5 posts - 1 through 5 (of 5 total)
            • The topic ‘Enable text at the top of a portfolio page’ is closed to new replies.