Tagged: blog layout
-
AuthorPosts
-
November 24, 2014 at 4:21 pm #356911
Hi Enfold People!
I saw this topic
And added the author to the blog intro page – can you add the code to line 286 for also showing the category PLzI also want to have a “Normal” blog intro page – Totally no pics – no featured – no author – no gravatar = No Pics :)
(I know it’s boring but the client has his mind set) :)
The heading left aligned
The body left aligned
The “read more”…. after 450 characters (I added some script in function to do this one)Here is the link to the blog http://www.reach-out.dk
I have a page as the blog (this client calls it “Forum” and uses the Krisi blog post drop in to show posts but this has only a small variation of settings (most with pics)
I need a multi author, no pic, all meta data and dates and normal layoutThanks
Peter
November 25, 2014 at 12:49 pm #357484Hi,
Just a note … That link to that topic… The code I added for the Author is WRONG it only shows ONE author even if someone else wrote it ? :-) So I still need even more help now…
Peter
November 26, 2014 at 4:46 am #358135Hey!
Thank you for using Enfold and sorry for the delay.
Regarding the author, please refer to this link: https://kriesi.at/support/topic/show-blog-author-on-blog-grid/#post-286592
For the category, you can use the get_the_category function: https://kriesi.at/support/topic/category-name-in-class-in-tag-in-grid-layout-blog-style/#post-259680
For further modifications, please visit Envato Studio or Werkpress.
Cheers!
IsmaelNovember 26, 2014 at 4:32 pm #358333Hi Ismail
Thanks but am I using grid layout? Don’t think so?
The code in that topic is OLD!! My line 364 in postslider.php is different?
Any chance you could copy in here the entire solution to show a normal meta line? Please!Peter
November 29, 2014 at 5:47 am #360014Hi Peter!
I’m not seeing a blog on the link you posted.
Cheers!
JosueNovember 29, 2014 at 5:14 pm #360090Hi Josue
The client is a organisation they call the blog for a forum ?? Go figure
http://www.reach-out.dk/blog (title is forum) but don’t let that fool you :)November 29, 2014 at 7:18 pm #360118Hi,
Can you please create us a WordPress administrator account? post it here as a private reply.
Regards,
JosueNovember 29, 2014 at 9:21 pm #360135This reply has been marked as private.November 29, 2014 at 9:57 pm #360137Hi!
Can you enable file editing so we can modify the child theme functions.php?
Cheers!
JosueNovember 29, 2014 at 10:31 pm #360144Hi Josue
it’s ready for u :)December 1, 2014 at 3:12 am #360537Hi!
If you want to add the category on the grid blog style, please edit postslider.php. Look for this code:
$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>"; } $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
Replace it with:
$output .= "<div class='slide-meta-comments'><a href='{$link}{$link_add}'>{$commentCount} {$text_add}</a></div><div class='slide-meta-del'>/</div>"; } $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup)); $category = get_the_category($the_id); if(!empty($category)) { $output .= '<span class="blog-categories minor-meta">Published '.__('in','avia_framework')." "; $output .= '<a href="' . get_category_link( $category[0]->term_id ) . '">' . $category[0]->cat_name . '</a>'; $output .='</span><div class="slide-meta-del">/</div>'; };
Best regards,
IsmaelDecember 1, 2014 at 11:40 am #360702Hi Ismael,
Thanks for your code – It gives me this error:Parse error: syntax error, unexpected ‘protected’ (T_PROTECTED) in /home/www/reach-out.dk/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/postslider.php on line 445
I left the door open for you and file edit as well if you could take another look
Peter
December 2, 2014 at 5:08 am #361283Hi!
This is working on our installation. We can’t edit the postslider.php file on the wp dashboard. We may need the FTP access. I think you copied the code incorrectly. Please get the code here: http://pastebin.com/1WP16QsT
Cheers!
IsmaelDecember 2, 2014 at 12:21 pm #361403Hi Ismael,
Arrhhh my mistake.. I had taken way to many lines out. Sorry
It works – But now we still need Author? Where did he go :)
(Maybe I now cleaned out to much – I compared to an original version and scraped all my other lines to honor yours :) )
Would you just add the author for me?
Kins regardsPeter
December 3, 2014 at 4:19 am #361933Hi!
Can you please provide a link to the actual page? The author should be there by default. Please replace the postslider.php code with this: http://pastebin.com/tYxBpjKA
Cheers!
IsmaelDecember 3, 2014 at 2:02 pm #362092Hi Ismael,
Wooo Cool… My file was missing 10 lines ???
And I compared with my own blog at http://www.bizdoktor.dk – Those lines is also missing and I am on the latest and newest version of Enfold?
So maybe you just forgot to “release” that file :) Or I missed something…
Let me compare to another blog….
Hmmm a brand new fresh install is ALSO missing those lines…
Here is a screen shoot (Bang!)
”
(Picture View)
The red indicates MISSING against the org. postslider.php from downloaded ZIP- This reply was modified 10 years ago by Netzie.
December 3, 2014 at 2:06 pm #362099And I should add… When those lines are added… It works perfectly :-)
All we need now … To make it PERFECT is for the Author name to link to Author profile then is “Out of this world” perfect :)
- This reply was modified 10 years ago by Netzie. Reason: Adding the perfection
December 4, 2014 at 3:00 am #362647Hey!
Hmm.. That’s weird. Please replace the code with this: http://pastebin.com/icQz4Se0
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.