-
AuthorPosts
-
August 28, 2014 at 12:26 pm #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?
Thank you very much.
Cerasela
August 30, 2014 at 10:12 am #311198Hi 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!
JosueAugust 31, 2014 at 11:32 pm #311605Hi 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
August 31, 2014 at 11:50 pm #311609One 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,
CeraselaSeptember 4, 2014 at 1:50 am #313152Hey 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!
JosueSeptember 4, 2014 at 10:55 am #313253Hey 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:
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
September 5, 2014 at 12:19 am #313687Hi,
Can you please create me a WP administrator account? post it here as a private reply.
Regards,
JosueSeptember 5, 2014 at 1:17 am #313704This reply has been marked as private.September 5, 2014 at 2:06 am #313714Hey 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,
JosueSeptember 5, 2014 at 10:41 am #313902Hi 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
September 5, 2014 at 11:10 am #313930PS This is what I mean: http://www.screencast.com/t/proGFa9GcQo
September 5, 2014 at 3:01 pm #314058Hello,
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
September 8, 2014 at 8:31 am #314903Bump?
September 9, 2014 at 12:32 am #315436Hey!
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!
JosueSeptember 9, 2014 at 1:08 pm #315829Hey 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
September 12, 2014 at 8:59 pm #318323Hi!
I’m no longer seeing that code in the post slider – http://screencast.com/t/K6GyG8qK0Jg6
Cheers!
JosueSeptember 13, 2014 at 12:19 am #318361Hey 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,
CeraselaSeptember 14, 2014 at 3:59 am #318705Hey 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 -
AuthorPosts
- You must be logged in to reply to this topic.