Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #1215088

    Hi there,

    I just released my new blog this week. First blog entry does look as I wanted. But when I prepared the second one today it does look completely different: No preview text on home, no blog post picture (“Beitragsbild” – sorry – I do not know the right English term for this…) on the the blog post just on home, sidebar is just in the lower section if the post not on the complete side of the post, release date and share links are missing at the bottom of the post.

    When I issue a new blog post everything is right as long as I remain in the standard editor. But once I switch to the extended layout editor with the Avia Layout Architect this happens again.

    Would highly appreciate if you could help me on this! If you need any further details or screenshots of some settings (whereby the website is on German) please let me know.

    Thanks!!!!

    #1215385

    Hey mai,

    All content needs to be added manually to your posts when using the Layout Builder. You can use the Image element for the featured image for example, and the excerpt can be set in the Excerpt field. If you don’t see that then please select to show it under Screen Options in the top right hand corner of the screen when editing your post.

    Best regards,
    Rikard

    #1215390

    Hi Rikard,
    OK – I see. The first one has been created without galery and therefore just with the standard editor. I can add scoial media below the post manually. no problem. But how can I make sure that the gallery and the sidebar do not interfere with each other? Settings on the right hand corner where not really helpful.

    #1215392

    And how do I get the “read more text” on the blog page? I have just added a read more tag in my text, but this has no influence on home. Sorry, but after several “normal” homepages this is my very first blog…
    Thank you!

    #1215394

    Sorry – and I cannot find a content element for the release date?

    #1215402

    Solved the problem with the gallery – thank you! The hint that I had to do this manually helped a lot…! (originally I chose a color selection which is streched to the complete page – when using 1/1 as layout element the sidebar is shown correctly)

    But still need help on these elements:
    How do I get the category mentioned on the blog page (e.g. above the title)?
    How do I get the release date of the blog on the top or on the bottom of the page?
    How do I get the release date of the author on the top or on the bottom of the page?
    How do I get the read more text on home?

    Thank you!!!!!

    • This reply was modified 4 years, 7 months ago by mai.
    #1217046

    Hi,

    Thank you for the update.

    Are you using the Advance Layout Builder (ALB) for your posts? Please note that default elements such as the date, title or categories will not display automatically when ALB is enabled. You have to switch to the default editor if you want those info to render or display automatically.

    Best regards,
    Ismael

    #1217066

    Dear Ismael,

    Thanks for your reply.

    It’s the Avia Layout Architect I am using usually as it gives more possibilities for media content.

    And that I have to do this manually is what Rikard already told me. This hin already helped a lot. But isn’t there a way to include category, release date, author name manually within the blog entry? I could not find any block for these informatin. And somehow it still has to be possible to get a proper preview text before the “read more” tag on home. This too does not work – even when I include a read more tag within my first text block withon the blog entry.

    Thank you!

    #1217685

    Hi,

    There are no available shortcodes or elements for those information, but you can create one if necessary. Please check the following thread for an example of the custom shortcode.

    // https://kriesi.at/support/topic/adding-post-meta-using-advanced-layout-building/#post-1211511

    Best regards,
    Ismael

    #1218155

    Hi Ismael,

    Thanks a lot – this article helped a lot. But I still have problems with this:

    1.) When there is more than one categorie – how do I get a separator between the categories (see green marking in screenshot Preview Content – separator missing.jpg). Result should look like this:
    category 1, category 2
    or
    category 1 | category 2

    2.) Could not find a code for a shortcode for the keywords of a blog article. Could you please help me with this, too. Would be perfect to have a separator between the keywords as I was asking above for the categories.

    3.) And I still have problems with the read-more-text on home. I have entered a read-more-tag (see screenshot Read-More-Tag.jpg). But still no content text at all does show up on home (see screenshot Home.jpg).

    Thank you so much!!!!

    Regards

    #1219035

    Hi,

    Thank you for the update.

    1.) It should add a comma after every category item but if you want to replace it, look for this line in the previous snippet..

    $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
    

    .., then replace the value of the 4th parameter (‘, ‘) in the get_the_term_list function.

    // https://developer.wordpress.org/reference/functions/get_the_term_list/

    2.) What do you mean by keywords? How do you define them?

    If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

    Thanks!

    Best regards,
    Ismael

    #1219119

    Hi Ismael,

    Thanks for your reply.

    1.) As you can see in “Preview Content – separator missing.jpg” the separator is missing.
    If you mean with “Snippet” the code I have added on the function.php, then please double check as this is not included in my code. Function.php is also in the downloadlink I have provided (and which is copied in the private content again).
    But as the comma currently does not show up I’d assume that I first have to add some code before I replace it.

    2.) Keywords can be added for any blog entry. Please recheck screenshot “keywords.jpg” which I have added to the download link. In German it is “Schlagworte”. The sections in the English version should have the same sequence as the ones in the English version. But I am pretty sure that keywords is the correct English translation.

    3.) I will issue a new ticket for the read more text as requested.

    Thanks

    #1220739

    Hi,

    1.) Are you using the sc_post_category shortcode? If you are, then edit the functions.php file and look for this code around line 79:

    $separator = ' ';
    

    Add the character that you want to use a separator as the value of that variable.

    2.) For the keywords or tags, all you need is a copy of post_category_shortcode and replace the get_the_category with get_the_tags function.

    /*Shortcode nur für "alle Tag" in Blogbeiträgen mit dem Avia Layout Builder*/
    function post_tags_shortcode()
    {
    	global $post;
    	$tags = get_the_tags($post->ID);
    	$separator = ' ';
    	$output = '';
    	if (!empty($tags)) {
    		foreach ($tags as $tag) {
    			$output .= '<a href="' . esc_url(get_tag_link($tag->term_id)) . '" alt="' . esc_attr(sprintf(__('View all posts in %s', 'textdomain'), $tag->name)) . '">' . esc_html($tag->name) . '</a>' . $separator;
    		}
    	}
    	return trim($output, $separator);
    }
    add_shortcode('sc_tag_category', 'post_tags_shortcode');
    
    You can now use the [sc_tag_category] shortcode to display the tags inside the post.
    

    Thank you for your patience.

    Best regards,
    Ismael

    #1221434

    Thank YOU for your patience, dear Ismael. This helped a lot. Ticket can be closed :-)
    Best regards

    #1221738

    Hi mai,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Blog entry does look weird when using Avia Layout Architect’ is closed to new replies.