Tagged: homepage blog_content
- This topic has 8 replies, 2 voices, and was last updated 10 years, 9 months ago by Sanjip Shah.
-
AuthorPosts
-
August 17, 2013 at 10:55 pm #3321XavierCMember
Hi,
During the holidays, i set up my front page as a static page to explain visitors that we will be back soon… etc
But underneath this page (or inside, but under the content) i would like to call the “blog large image” thread to display, like if the home page was the “recent articles” but with this page above.I am trying to call different actions by picking from the content-extensions.php file but without success.
If you have any hint to lead me in the right direction, or simply a way to achieve what i wantThank you in advance
August 19, 2013 at 7:35 am #3354Sanjip ShahParticipant@XavierC You will have to edit the code for this. You could just add the following code just after the attitude_theloop_for_template_blog_image_large function starts in the content_extensions.php file in line around 414.
if( have_posts() ) { while( have_posts() ) { the_post(); the_content(); } }
Also, please make the child theme to make this customization so that you won’t lose the changes when you update the parent theme.
August 19, 2013 at 10:48 am #3378XavierCMemberThanks for the answer, but this does not change anything.
August 19, 2013 at 11:05 am #3379Sanjip ShahParticipant@XavierC Can you paste the code where you have made the changes.. And also you need to choose the ‘blog large image’ template for the page and set is a static front page.
August 19, 2013 at 11:07 am #3380XavierCMemberthanks for the answer :
/****************************************************************************************/ if ( ! function_exists( 'attitude_theloop_for_template_blog_image_large' ) ) : /** * Fuction to show the content of page template blog image large content. */ function attitude_theloop_for_template_blog_image_large() { if( have_posts() ) { while( have_posts() ) { the_post(); the_content(); } } global $post; global $attitude_theme_options_settings; $options = $attitude_theme_options_settings;
August 19, 2013 at 11:09 am #3381Sanjip ShahParticipant@XavierC Can you post and link to your site? And also you need to choose the ‘blog large image’ template for the page and set is a static front page.
August 19, 2013 at 11:12 am #3382XavierCMemberis there a way i can send it to you privately, i dont want google picking up on this one
August 19, 2013 at 11:14 am #3383XavierCMemberoh it’ working, i see where i was wrong, that’s magic!
Thanks a lot for your help, really appreciated…
August 19, 2013 at 11:20 am #3385Sanjip ShahParticipant@XavierC Okay. Great! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.