badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Adding blog_image_large(); to static homepage

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3321
    XavierC
    Member

    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 want

    Thank you in advance

    #3354
    Sanjip Shah
    Participant

    @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.

    #3378
    XavierC
    Member

    Thanks for the answer, but this does not change anything.

    #3379
    Sanjip Shah
    Participant

    @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.

    #3380
    XavierC
    Member

    thanks 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;
    
    #3381
    Sanjip Shah
    Participant

    @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.

    #3382
    XavierC
    Member

    is there a way i can send it to you privately, i dont want google picking up on this one

    #3383
    XavierC
    Member

    oh it’ working, i see where i was wrong, that’s magic!

    Thanks a lot for your help, really appreciated…

    #3385
    Sanjip Shah
    Participant

    @XavierC Okay. Great! 🙂

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