-
AuthorPosts
-
April 25, 2014 at 6:23 pm #256272
Dear admin,
I’d like to make changes to Latest Portfolio at the footer. Refer to screenshot below.
As you can see from the first row, that’s the result I want to achieve. I’ve used Firebug to get that result.
1) Hide date and time
2) Move excerpt to date and time’s locationLet me know if you need the link to my site. I’ve password protected it and not sure how to give you the access without public access. Thanks a lot for the help in advance.
April 27, 2014 at 12:03 pm #256776Hey etheravion!
Open up enfold\framework\php\class-framework-widgets.php and replace:
if('display title and excerpt' == $excerpt) { echo "<div class='news-excerpt'>"; if(!empty($avia_config['widget_image_size'])) { echo "<a class='news-link-inner' title='".get_the_title()."' href='".get_permalink()."'>"; echo "<strong class='news-headline'>".get_the_title()."</strong>"; echo "</a>"; if($time_format) { echo "<span class='news-time'>".get_the_time($time_format)."</span>"; } } the_excerpt(); echo "</div>"; }
with
if('display title and excerpt' == $excerpt) { echo "<div class='news-excerpt'>"; if(!empty($avia_config['widget_image_size'])) { echo "<a class='news-link-inner' title='".get_the_title()."' href='".get_permalink()."'>"; echo "<strong class='news-headline'>".get_the_title()."</strong>"; echo "</a>"; if($time_format) { echo "<span class='news-time'>".get_the_excerpt()."</span>"; } } echo "</div>"; }
Regards,
PeterApril 27, 2014 at 1:44 pm #256779This reply has been marked as private.April 28, 2014 at 8:59 am #256938Hi!
Thank you for the update.
Do you mind if we take a look at the website? On the same page, at the top of the code suggested, please look for this codes:
if(empty($avia_config['widget_image_size']) || 'display title and excerpt' != $excerpt) { echo "<strong class='news-headline'>".get_the_title(); if($time_format) { echo "<span class='news-time'>".get_the_time($time_format)."</span>"; } echo "</strong>"; } echo "</a>";
Replace it with:
if(empty($avia_config['widget_image_size']) || 'display title and excerpt' != $excerpt) { echo "<strong class='news-headline'>".get_the_title(); if($time_format) { echo "<span class='news-time'>".get_the_excerpt()."</span>"; } echo "</strong>"; } echo "</a>";
Cheers!
IsmaelApril 28, 2014 at 9:37 am #256966This reply has been marked as private.April 28, 2014 at 2:33 pm #257071It works great now. Thanks!
-
AuthorPosts
- The topic ‘Latest Portfolio Changes’ is closed to new replies.