• Hi there!

    I use Bose theme. Please have a look at the demo, so I guess it’s easier to understand:

    https://demo.inkhive.com/bose/

    In the middle of the page there’s a showcase with 3 pictures: two feet, a highway and some euros. I have to add another showcase just below the first one, but have no idea how I can to that using a child theme.

    I already managed to get the code of the original showcase using the “Inspect Element” on Chrome, so I guess it’s just a matter of copying it, pasting it and making the changes I need, but that’s my question: where and how exactly I put that on the child theme?

    I hope I made myself clear, I’m a beginner at websites development ??

    Thanks a lot!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Thebigspire

    (@thebigspire)

    PS.: The theme itself provides only one showcase, and that’s why I’m heaving some headache trying to figure out how I can have another one.

    Hi Thebigspire,

    I have checked the theme, you can do below steps to achieve your layout.

    1) Create a child theme of bos theme, ref. here https://codex.www.ads-software.com/Child_Themes .
    2) Copy showcase.php of parent theme and place it in child theme, and then in code replace this line if ($count > 3) { break; } .
    3) In wordpress backend, under Appearance->theme options , you will find tab called showcase, just add more then three showcases.
    4) Activate the child theme and you are done.

    Let me know if this helps.

    Thanks,
    Swayam

    Thread Starter Thebigspire

    (@thebigspire)

    Hi swayam.tejwani!

    Thanks a lot for your help!

    I just didn’t understand the 2nd point of the list. Would you mind explaining it a little better? How should I replace the line if ($count > 3) { break; } exactly?

    I mean to say that you need to remove that particular line
    if ($count > 3) { break; } from the code because this is the line which wont allow to add more then 3 blocks, hope you get it ??

    Thread Starter Thebigspire

    (@thebigspire)

    Hi swayam.tejwani! It worked! Thanks a lot!

    However, there’s just one little problem occuring now: There’s no space between the two showcases, as you can see on the screen shot below:

    Do you have any idea of how I can add some pace between them?

    Thanks again!

    David_G

    (@questas_admin)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to add an item exactly at a desired point using child theme?’ is closed to new replies.