-
AuthorPosts
-
May 23, 2014 at 12:05 am #268931
Hi,
I have set up a grid blog layout, in which I need to place the blog titles above their respective images, while the excerpts stay below the images. Comments are turned off, so their position is irrelevant.
jyles_ks tried to do almost the same here: https://kriesi.at/support/topic/home-page-blog-move-title-comments-above-image/
However, the topic above seems to be a bit outdated, as the recommended line for replacement in postslider.php is now become different (probably altered in one of the updates).
Before it was:
$output .= !empty($excerpt) ? “<div class=’slide-entry-excerpt’>”.$excerpt.”</div>” : “”;
Now it looks like this:
$output .= !empty($excerpt) ? “<div class=’slide-entry-excerpt entry-content’ $markup>”.$excerpt.”</div>” : “”;Question 1) Can I still use the old recipe, or should it be done differently?
Question 2) The meaning was to copy postslider.php file, paste it in the child-theme folder and edit it there, right?Thanks a lot yet again,
Kind regards,
nerkasaMay 26, 2014 at 6:27 pm #270194Hey nerkasa!
Yes the instructions are still valid. Basically you need to replace:
$output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";
with
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : ""; $output .= !empty($excerpt) ? "<div class='slide-entry-excerpt entry-content' $markup>".$excerpt."</div>" : "";
and delete this line:
$output .= $thumbnail ? "<a href='{$link}' data-rel='slide-".avia_post_slider::$slide."' class='slide-image' title=''>{$thumbnail}</a>" : "";
If you want to “replace” the original parent theme shortcode with your child theme please follow the instructions here: http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Cheers!
PeterMay 26, 2014 at 10:27 pm #270263This reply has been marked as private.May 28, 2014 at 3:25 pm #271180Hey!
Did you upload your modified shortcode file into the wp-content/themes/enfold-child//shortcodes/ folder?
Regards,
PeterMay 28, 2014 at 9:50 pm #271435Hei Peter !
You see, I did paste a modified postslider.php file to the child theme directory, keeping the same folder hierarchy: child-theme-folder>config-templatebuilder>avia-shortcodes>postslider.php. I know what you’re thinking: duh! But at that time the common logic cunningly whispered to my ear that I was really smart in doing so. I did not put the postslider.php file to the shortcodes folder, because it was beyond my logical capabilities to understand why the files in the child theme shouldn’t have the same folder hierarchy as those in the parent theme.
Fortunately, your last message made me turn away from the thorny path of mistakes… Sincere thanks!1) Is there a rule that defines which of the parent theme files shall be pasted to child theme folder, which – to the special folders like “shortcodes” and which – to the folders retaining same hierarchy as the parent theme?
Thanks again,
Best regards,
nerkasaMay 29, 2014 at 6:30 am #271639Hi!
Thank you for the update.
The avia_load_shortcodes filter only refers to the file located enfold>config-templatebuilder>avia-shortcodes but theme files like includes > loop-index.php should be place on the same folder directory if you want to override it on the child theme.
Cheers!
IsmaelMay 29, 2014 at 1:40 pm #271777Thanks Ismael, that closes this case for me.
Best regards,
nerkasa -
AuthorPosts
- The topic ‘Placing blog title above featured image, excerpts below’ is closed to new replies.