Portfolio Page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3309
    Danna McCormick
    Customer

      Hi Wes,

      While I’ve built several websites using Legacy, I’ve never used the Portfolio page template.   I’d like to do so now, and have have edited the Genesis Theme settings to show the “stories” category, ID #5.

      Here is a link to the Stories category using the Blog Template -http://heta.lunariffic.com/~natio114/the-stories/

      And here is a link to the same category using the Portfolio page template – http://heta.lunariffic.com/~natio114/portfolio-test/

      On my screen it ‘s just a big blank white page, with no code behind it.

      What could be causing this?  In terms of plugin conflicts, I’m running Genesis Responsive Slider, Gravity Forms, regenerate thumbnails, and one called TN3 Gallery.   I deactivated all of them, but still the portfolio page returned the big white screen of nothingness.

      Stumped!

      Thank you,
      Danna

       

       

       

      #3315
      Wes
      Moderator

        Its showing a server error.

        Have you modified any code anywhere? Functions file, page_portfolio.php file?

        #3460
        Danna McCormick
        Customer

          Hi Wes,

          I went through the functions.php file revision by revision and this code is what appears to be breaking the portfolio page:

          <code>

          /** Modify the Genesis content limit read more link */
          add_filter( ‘get_the_content_more_link’, ‘custom_read_more_link’ );
          function custom_read_more_link() {
          return ‘… <a class=”more-link” href=”‘ . get_permalink() . ‘”>read more</a>’;
          }<code>

           

          Which I used from this link – http://my.studiopress.com/snippets/post-excerpts/#content-more-link

          Any thoughts on a workaround?

          Thank you,

           

           

          #3464
          Wes
          Moderator

            I’m guessing the error is a duplicate error, right?

            When I created the portfolio template and added the “Custom Read More” code, I added the one from the StudioPress tutorial. Which means if you add the same code from the tutorial and add it to your functions file for other areas of your site then it will cause a duplicate error…..but only on the portfolio page. So the simple solution is to just rename the function and everything should work.

            Here is the way I do it now –

            add_filter( 'excerpt_more', 'portfolio_read_more_link' );
            add_filter( 'get_the_content_more_link', 'portfolio_read_more_link' );
            add_filter( 'the_content_more_link', 'portfolio_read_more_link' );
            /**
            * Custom Read More link.
            *
            * @author Wes Straham
            * @since 1.0.0
            */
            function portfolio_read_more_link() {
            return '<a class="more-link" href="' . get_permalink() . '" rel="nofollow">Read More</a>';
            }

            It’s the same code, I just renamed the functions.

            Let me know if that makes sense.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.