Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #310376

    Hey,

    I must have done something wrong but all of the sudden my posts don’t have the title and small icon displayed anymore – same thing for the social icons and footer at the end, although these options are correctly configured in Enfold / Blog Styling… Could you please have a quick look?

    http://enter-law.com/rca/

    Thank you very much.

    Cerasela

    #311198

    Hi Cerasela!

    I believe it’s because you are using ALB on Posts, you need to insert those elements manually or set this option here.

    Cheers!
    Josue

    #311605

    Hi Josue,

    Thank you, I have inserted the title manually as well as an icon near the post titles to get as closest possible to the initial display. It does not look as good as it did anymore but if I understand correctly it is either this or giving up ALB? If it is the case I surely prefer using ALB :)
    (Choosing to display the title in the Enfold settings as you suggested has an impact on the pages as well, I prefer not using this.)

    Best,

    Cerasela

    #311609

    One more thing, is there an easy way to insert at the end of each post the social network sharing icons selected in Enfold – Blog styling when using ALB on posts?

    The alternative of inserting each icon (Tweeter, Facebook, LinkedIn) with its own link via ALB in each post seems too difficult, I am hoping there is a way to avoid it…

    Best,
    Cerasela

    #313152

    Hey Cerasela!

    Try adding this at the very end of your theme / child theme functions.php file:

    add_action('ava_after_content', 'avia_add_social_toolbar', 10, 2);
    function avia_add_social_toolbar($id = "", $context = "")
    {
    	if($context == "post")
    		avia_social_share_links();
    }
    
    add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1);
    function avia_add_social_toolbar_template_builder($content = "")
    {
    	$content .= avia_social_share_links(array(), false);
    	$content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>';
    	return $content;
    }

    Cheers!
    Josue

    #313253

    Hey Josue,

    Thanks for this, I have tried it but it posted the share section on pages as well, not only posts… Before you replied I had opened another thread on this as I thought it would help solve it quicker, here it is:

    https://kriesi.at/support/topic/social-sharing-and-printer-friendly-icons-at-the-end-of-posts-using-alb/#post-312991

    The last code from Peter works fine, on posts only, as I wanted, but the share section is displayed in the middle of the page (at the bottom of course) and is not very aesthetic. If you could provide a tweak to align it to the left (as it was the case in the code that you sent in this thread) that would be great and solve and close both threads.

    Looking forward to your reply,

    Best,

    Cerasela

    #313687

    Hi,

    Can you please create me a WP administrator account? post it here as a private reply.

    Regards,
    Josue

    #313704
    This reply has been marked as private.
    #313714

    Hey Cesarela!

    Try using this code:

    .av-share-box {
        margin-left: -120px;
    }

    The av_fifth code was appearing there because there was a qtranslate code before, i had to enable debug mode to fix it.

    Regards,
    Josue

    #313902

    Hi Josue,

    Thank you for looking into this, I have added the code to Quick css and adjusted to -200px, it’s now perfect!

    Also thank you for enabling the debug mode and fixing the bad code, it does no longer display in the posts pages themselves.

    I can still see it though in the post slider on the main blog page http://enter-law.com/publications/ (but only in the english version).
    And I can’t remove it from the debug section in that page because I don’t see it there, do you think this (also) comes from the posts themselves?

    Cheers!

    Cerasela

    #313930

    PS This is what I mean: http://www.screencast.com/t/proGFa9GcQo

    #314058

    Hello,

    Apologies for putting back on the table a problem that I thought solved (which brings us now to 2 items left to solve, with the e-mail above):

    after clearing the cache a few times more I realize that the share section displays on pages as well, more precisely (from what I can see) on the main blog page http://enter-law.com/publications/, and on another first level page: http://enter-law.com/expertise/
    (this image has been taken from another computer, with a different browser):

    http://www.screencast.com/t/0PFzSYA8gC

    I would really want to limit the share section to posts and not have it on pages.

    Thanks for your support.

    Best

    Cerasela

    #314903

    Bump?

    #315436

    Hey!

    Change the code to this:

    add_action('ava_after_content', 'avia_add_social_toolbar', 10, 2);
    function avia_add_social_toolbar($id = "", $context = "")
    {
    	if($context == "post")
    		avia_social_share_links();
    }
    
    add_filter('avf_template_builder_content', 'avia_add_social_toolbar_template_builder', 10, 1);
    function avia_add_social_toolbar_template_builder($content = "")
    {
    	if(is_singular('post')){
    		$content .= avia_social_share_links(array(), false);
    		$content .= '<div style="height:1px; margin-top:50px;" class="hr"></div>';
    	}
    	return $content;
    }

    Cheers!
    Josue

    #315829

    Hey Josue,

    Brilliant, thank you very much.

    Please also check this last question left over from September 5th regarding the bug on the post slider (copied here below as I sent it, but from what I can tell after additional attempts to fix it, the issue probably comes from selecting “title, Excerpt and read more link”, when the excerpt needs to be extracted from a four fifth frame in the ALB post).

    “thank you for enabling the debug mode and fixing the bad code, it does no longer display in the posts pages themselves. I can still see it though in the post slider on the main blog page http://enter-law.com/publications/ (but only in the English version). (…) do you think this comes from the posts themselves?

    PS This is what I mean: http://www.screencast.com/t/proGFa9GcQo

    Many thanks again for your patience and support.

    Regards,

    Cerasela

    #318323

    Hi!

    I’m no longer seeing that code in the post slider – http://screencast.com/t/K6GyG8qK0Jg6

    Cheers!
    Josue

    #318361

    Hey Josue,
    I know, this is because I have switched to display ‘Only title and read more link’. I would still like to have the post excerpts in the blog post but the option does not seem to be compatible with ALB?

    Best,
    Cerasela

    #318705

    Hey Cesarela!

    It may be a conflict with the plugin you are using to translate the site, i’d suggest setting a manual Excerpt (Screen Options > Excerpt) if you want to have post excerpts there.

    Regards,
    Josue

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