Tagged: 

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #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 PLz

    I 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 layout

    Thanks

    Peter

    #357484

    Hi,

    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

    #358135

    Hey!

    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!
    Ismael

    #358333

    Hi 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

    #360014

    Hi Peter!

    I’m not seeing a blog on the link you posted.

    Cheers!
    Josue

    #360090

    Hi 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 :)

    #360118

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #360135
    This reply has been marked as private.
    #360137

    Hi!

    Can you enable file editing so we can modify the child theme functions.php?

    Cheers!
    Josue

    #360144

    Hi Josue
    it’s ready for u :)

    #360537

    Hi!

    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,
    Ismael

    #360702

    Hi 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

    #361283

    Hi!

    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!
    Ismael

    #361403

    Hi 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 regards

    Peter

    #361933

    Hi!

    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!
    Ismael

    #362092

    Hi 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!)
    Missing lines in Enfold Postslider.php
    (Picture View)
    The red indicates MISSING against the org. postslider.php from downloaded ZIP

    • This reply was modified 9 years, 11 months ago by Netzie.
    #362099

    And 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 9 years, 11 months ago by Netzie. Reason: Adding the perfection
    #362647

    Hey!

    Hmm.. That’s weird. Please replace the code with this: http://pastebin.com/icQz4Se0

    Best regards,
    Ismael

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