Portfolio Page where to add Code?

Homepage Community Forums Epik Theme Support Portfolio Page where to add Code?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13294
    Mark
    Customer

      I have a piece of theme code and a short code that will display an optin box on any page or post on my site.

      The work on all apart from the Portfolio page and the blog page I’ve set up.

      This is the theme code

      <?php hybrid_connect_insert_connector(22);?>

      I want the box to appear above the content so I’ve tried placing it at various point in this section of the page_portfolio.php code

      //Adds Page Content

      add_action( ‘genesis_before_loop’, ‘epik_do_portfolio_content’ );
      function epik_do_portfolio_content() {
      echo ‘<div class=”entry-content entry-portfolio” itemprop=”text”>’ . get_post()->post_content . ‘</div>’;
      }

      This just causes an error referring to an unexpected ‘<‘ on line XX

      Any idea how I can add the code? to the portfolio page?

      #13299
      Eric
      Customer

        You would actually need to “hook” that in, in order for it to show up properly. Are you familiar with Genesis Hooks, and “hooking” code in to certain places of themes/templates?

        Here are some StudioPress resources just in case – http://my.studiopress.com/ head over to the tutorials or code snippet pages – http://my.studiopress.com/tutorials/ and you’ll see an Introduction to Hooks – http://my.studiopress.com/docs/hooks/ as well as the Hook Reference – http://my.studiopress.com/docs/hook-reference/


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

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