Link to home
Start Free TrialLog in
Avatar of Amanda Watson
Amanda WatsonFlag for Australia

asked on

Need help with a genesis theme and finding content

I have been asked to update a site and its using a the Genesis theme and I cannot for the life of me find where they have added in the internal and external products.
There is NOWHERE, repeat NOWHERE I can see where this content could be hiding.
I have checked widgets, plugins for products, the theme code....its all written in a bizarre way
Can anyone help me solve this issue.

In addition I would like to make this header and navigation sticky, but of course the header.php file doesn't lend itself to presenting the banner, header and nav in one div so I just don't know how to develop that.
Can anyone help?
A
Avatar of Amanda Watson
Amanda Watson
Flag of Australia image

ASKER

Are you saying you can't find out where the main posts are being stored? Your issue I think will be difficult to resolve via just communication. I'd have to see the dashboard to try and see what, if anything, has been modified in genesis. I worked with it on our website st my last job so I have experience in it. I'm on my phone but when I get into work I'll diagnose the desktop site a little more to try and break it down.

In other words I will try and help. Just give me a few hours to get to work and look at it.
Thanks I appreciate that.  I have honestly checked absolutely everywhere.  But saying that, it hasn't come from nowhere.
There are two php pages that are called internal and external blinds pages, but these just have loops of content....but the loops lend no clue as to where you would expect the conent to be.  Honestly I would think its calling a page or post, but there are no post or categories matching anything showing or pages.  Nor is there any extension on the dashboard similar to testimonials or portfolio where you might see it.
Its got me totally boggled.  Ill write the code of one of the internal_blinds.php pages.


<?php

remove_action('genesis_post_title', 'genesis_do_post_title');
function fo_do_post_title_header() {

      $feat_image = wp_get_attachment_url( get_post_thumbnail_id(get_the_id()) );
?>
      <div class="title-container">
            <div class="wrap">
                  <h3><?php the_title(); ?></h3>
      <?php
global $post;
$content = $post->post_content;;
echo '<p>'.$content.'</p>';
      ?>                  
            </div>            
      </div>
<?php
}
add_action('genesis_after_header', 'fo_do_post_title_header');


add_action('genesis_post_content', 'product_loop', 0);

function product_loop() {

      $args = array(
            'post_type'  => 'product',
            'product-category' => 'internal-blinds',
            'orderby' => 'title',
            'order'   => 'ASC',
            'post_count' => '-1'
            );

      $query = new WP_Query( $args );      

      if ( $query->have_posts() ) {
                  while ( $query->have_posts() ) {
                        $query->the_post();

                        $feat_image = wp_get_attachment_url( get_post_thumbnail_id(get_the_id()) );

                        ?>
                              
                              <div class="product-box" style="background-image: url(<?php echo $feat_image; ?>);">
                                    <div class="title">
                                          <h2><a href="<?php echo get_the_permalink(); ?>"><?php echo get_the_title(); ?> <span><i class="fa fa-arrow-circle-right"></i></span><a></h2>
                                    </div>

                                    <div class="content">
                                          <p><?php echo get_the_content(); ?></p>
                                    </div>
                              </div>

                        <?php
                  }

      } else {
            echo 'no posts';
      }

      wp_reset_query();      

}

function fo_cta() {
?>
      <div class="cta-container">
            <div class="left">
            <?php
            genesis_widget_area( 'homepage-section-3-sub', array(
                  'before' => '<div class="secion-3-sub-widget-area widget-area">',
                  'after' => '</div><!-- end of .section-4-widget-area -->',
            ));
            ?>            
            </div>
            <div class="cta-divider"></div>
            <div class="right">
            <?php
            genesis_widget_area( 'homepage-section-3-sub-2', array(
                  'before' => '<div class="secion-3-sub-widget-area widget-area">',
                  'after' => '</div><!-- end of .section-4-widget-area -->',
            ));
            ?>            
            </div>            
      </div>

<?php
}
add_action('genesis_before_footer', 'fo_cta', 1);

genesis(); ?>
It weird because I can see it's using the Genesis framework but they either built their own theme from scratch or are using a child theme called "fashiononline". I am guessing it's the latter. I think a quick snapshot of your dashboard menu might really help. You say you have looked everywhere but I myself have missed where things are located simply because they don't make much sense but who is to question "theme makers" :) That being said, you are right in the code itself there doesnt look like it is calling any particular page, post, or post type even.

As I stated, it's hard through code alone to find out where something is located in wordpress. Having access to the dashboard or the ftp server makes thing so much easier but that's also a security risk so I will try and help as much as I can.
gosh, I don't think I snapshot of this dashboard will work for you, it really does not reveal anything, maybe even the plugins might help
In the code they are calling it a product box.....but there is nothing in the dashboard calling products???
ASKER CERTIFIED SOLUTION
Avatar of Sean Scissors
Sean Scissors
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It really was within the theme to find, but in the end I found html pages that were already built and they added them viia bootstrap as a page.  i ended up creating new pages in the backend pages of wordpress and linked them in there, to new pages I created