Tagged: Blog formatting
-
AuthorPosts
-
May 5, 2016 at 5:39 pm #627931
Hi there,
I’ve gotten some direct help on these issues from Enfold support (THANKS!), and have found some info from threads, but still have these outstanding questions. I’m hoping that having them all in one place with the short code could help some other folks out and save support some time.
For the blog post feed, using the Grid Layout, the following short code has yielded lovely results–no extraneous icons, no authors (doesn’t make sense for us) perfect spacing, and very nice styling overall. One catch, how can we also display the blog post publication date? I tried messing with the short code and got no results–it’s either the dates and repeated icons or no icons and no dates. If we could keep everything as is but display the dates, it would be spot on perfect.
#top .fullsize .template-blog .blog-meta {
display: none !important;
}span.blog-categories, .slide-meta {
display: none;
}a.slide-image {
display: none!important;
}.blog-categories,.slide-meta-del, .slide-meta-time {
display: none!important;
}.avia-content-slider .slide-entry-excerpt {
padding-bottom: 20px;
}.slide-meta {
display: none!important;
}.image-overlay{
display: none !important;
}That said, I have the opposite issue for the Articles Magazine feed. We want to NOT display the publication date. Can’t find any short code on that and none of the options in the Magazine content box seem to do the trick. Any ideas?
Lastly, and apologies if this should be in a different thread, but we can’t get the lists to display either numbers or letters (the custom ordered lists
- are not rendering), it’s either one or the other universally. Before, our problem was that lettered lists would display in preview mode appropriately, but would be rendered as numbers when viewing live. I found this short code, and it simply has reversed the problem, now numbered lists will only render as letters. Just for reference, the site has to do with legal issues, so being able to have really well organized lists is a great capability.
ol {
list-style: lower-alpha;
}If it’s not possible to have both numbered and lettered lists, please let me know and we’ll do it manually. Thanks!
May 9, 2016 at 11:39 am #629134Hey!
Try adding this code to the Quick CSS:
.av-magazine-time{ display: none; } ol{ list-style-type: decimal; }
Regarding the blog formatting, try adding this to theme / child theme functions.php:
add_filter('avf_postslider_title', function($title, $entry) { $title .= " <div class='post-slider-date'>".get_the_date('d-m-y', $entry->ID)."</div> "; return $title; },10,2);
Cheers!
JosueMay 9, 2016 at 4:40 pm #629340Hi,
Thank you very much.
The dates are gone from the articles, so awesome and thanks!
Unfortunately:
We still aren’t getting the lists to show up correctly. If you check out http://ericperkinslaw.raisonbrandsdev.com/2016/04/07/ten-things-business-owners-should-know-about-buy-sell-agreements/
The “1. 2. 3.” under 2. Basic Types of Buy-Sell Agreements are supposed to be “a. b. c.”. If you go into the post and click on the text box it renders properly, after that, it’s just numbers.
As for the article dates code, I added it to Appearance / Editor / Enfold Child / Theme Functions (functions.php) and got this error:
Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of add_filter(). in /home/jsdgjcif/public_html/ericperkinslaw/wp-content/themes/enfold-child/functions.php on line 9
I tried it on different lines but no luck. Here’s the code we already have in there if that helps:
add_filter( ‘avf_google_heading_font’, ‘avia_add_heading_font’);
function avia_add_heading_font($fonts)
{
$fonts[‘Roboto Condensed’] = ‘Roboto Condensed:400,700,400italic,700italic’;
return $fonts;
}add_filter( ‘avf_google_content_font’, ‘avia_add_content_font’);
function avia_add_content_font($fonts)
{$fonts[‘Roboto Condensed’] = ‘Roboto Condensed:400,700,400italic,700italic’;
return $fonts;
}There’s a login for you if you want to take a peek around. Thanks for the help and sorry for being a pain!
May 11, 2016 at 8:07 am #630501Hi,
Use this for the “abc” list:
ol[type="a"] { list-style-type: lower-alpha; }
The code looks correct. Please try to replace it with the following:
add_filter('avf_postslider_title', 'avf_postslider_title_mod',10,2); function avf_postslider_title_mod($title, $entry) { $title .= " <div class='post-slider-date'>".get_the_date('d-m-y', $entry->ID)."</div> "; return $title; }
Please copy the code directly from the forum, not from your email.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.