Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #763575

    Hello,

    is there a way to change the layout of a single post?

    I searched forum and found:

    Enfold already allows users to design Blog and Single blog pages using Advanced Layout Builder :)

    And i managed to build my own blog page – but i failed to find the ‘Single blog pages’ Editor.

    Can someone please point me to the right direction?

    #763588

    Hey mikt,

    The Single Blog Pages Editor is the default editor of wordpress if you use it you use the predefined layout for the single blog page, but if you use Advance Layout Editor, it will act like a page.

    Best regards,
    Nikko

    #764449

    Hm, so there is no (easy) way to change the single blog post layout?
    What i try to get is something like a fullscreen pic with post title followed by the post ( see link in private)

    Thanks
    Michael

    #764680

    Hi,

    I think you can do that by using a child theme: http://kriesi.at/documentation/enfold/using-a-child-theme/ copy single.php from Enfold theme to the child theme, then tweak the file.

    Best regards,
    Nikko

    #949195

    Want to be able to change the order of the loop so that instead of:

    1. title
    2. feature image
    3. content

    we get:

    1. feature image
    2. title
    3. content

    And wanted to see if you had a code sample of this change.

    #949857

    Hi phillipsmind,

    If you have already used the child theme, you need to create a folder called includes in the child theme, then copy loop-index.php of Enfold to the child theme, then edit it, find this code (line 193-198):

    
    //echo preview image
    if(strpos($blog_style, 'big') !== false)
    {
        if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
        if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>';
    }

    then cut this code and place it above this code (line 189):

    echo strpos($blog_global_style, 'modern-blog') === false ? $cat_output.$title : $title.$cat_output;

    Let us know if this helps.

    Best regards,
    Nikko

    #950612
                    {
                        foreach($taxonomies as $taxonomy)
                        {
                            if(!in_array($taxonomy, $excluded_taxonomies))
                            {
                                $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
    												}
                        }
                    }
                	
                	
                	
                	//elegant blog
                	//prev: if( $blog_global_style == 'elegant-blog' )
                	if( strpos($blog_global_style, 'elegant-blog') !== false )
                	{
    	            	$cat_output = "";
    	            	
    	            	if(!empty($cats))
                        {
                            $cat_output .= '<span class="blog-categories minor-meta">';
                            $cat_output .= $cats;
                            $cat_output .= '</span>';
                            $cats = "";
                        }
    								
    								/* -- [ NOTE ] --- REMOVED --------
    								echo '</div>';
                        // The wrapper div prevents the Safari reader from displaying the content twice  ¯\_(ツ)_/¯
                        echo '<div class="av-heading-wrapper">';
                            echo strpos($blog_global_style, 'modern-blog') === false ? $cat_output.$title : $title.$cat_output;
                        echo '</div>';
    								*/
    
    					echo '<span class="av-vertical-delimiter"></span>';
    					
    					//echo preview image
    								
    				    if(strpos($blog_style, 'big') !== false)
    				    {
    				        if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>';
    				        if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>';
    				    }
    				    if(!empty($before_content))
    				        echo '<div class="big-preview '.$blog_style.'">'.$before_content.'</div>';
    								echo '<div class="av-heading-wrapper">'; // The wrapper div prevents the Safari reader from displaying the content twice  ¯\_(ツ)_/¯
    										echo strpos($blog_global_style, 'modern-blog') === false ? $cat_output.$title : $title.$cat_output; // -- [ NOTE ] --- ADDED TO REVERSE TITLE AND FEATURE //
    								echo '</div>';
    

    This is what I did – lines 183-230 – Seems to have worked properly.

    #950740

    Hi phillipsmind,

    Glad that we could help :)
    Let us know if you need further assistance or if we can close this thread.

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.