Changing the Blocks

Posted in: Newspaper
Post count: 104

Hi!

As you can see on the image attached, I wish to change the block that I am using (Block 18). My customer wants to see a small excerpt of the new under the title on the mfirst new. Is that a way to do that? How?

Thanks in advance!

Post count: 1291

Hi,

Block 18 uses modules 10, mx2 and mx8. – http://screencast.com/t/S80wXB1Nztny
The section you want to modify is module mx8, you can find it here – http://screencast.com/t/lNVXlHXZ1BV6
You can see how the excerpt is added on the other modules – http://screencast.com/t/1gp9rBu4v
Custom css may be required to position the newly added excerpt.

Thank you!

  • This reply was modified 11 years by Emil G.
Post count: 104

Hi!

Sorry for the late answer. I believe the best way to do this is via the child theme? In order to do that I will have to place the edited file(s) on the child theme folder with the same folder strucure, right?

Post count: 1291

Hi,

Yes, you can doit via child-theme, check the documentation here – https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thank you!

Post count: 104

Ok, here is the thing:

I followed your recommendations along with your print screens step by step. Didn’t work. All I did was to copy the respective files and place them on the root of the child-theme and edit them. I placed the

<div class="td-excerpt">
    <?php echo $this->get_excerpt();?>
</div>

Inside of files I should edit and it did not work. I then placed the <?php echo $this->get_excerpt();?> inside of <div class="item-details"></div> and did not work neither. Here’s the funny part: despite that I have the child theme activated, the code does not appear anywhere on my Firefox inspector when I inspect it…

After testing on the parent theme files, the cnages are visible. So, I decided to create the same folder structure on the child theme and upload the respective files onto those folders. Still not working…

Any guess of what might be the cause to this problem?

Post count: 7909

Hi,

Please make sure that your child theme version is the same like the main theme and acctivate it. You have to see what module you need to be overwritten by the child theme, and copy it the the child theme under a similar directory structure (…/child_theme_name/includes/modules/), like it is specified in the documentation.

Thanks!

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