Support ForumCreating custom top/bottom decorations – Support Forum https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/feed/ Tue, 01 Dec 2026 22:39:59 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2749 <![CDATA[Creating custom top/bottom decorations]]> https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2749 Fri, 13 Jun 2014 09:10:19 +0000 ScaryBeasties Hi there,

We’ve just been setting up our site using your Boldial Child theme, and we’d like to use custom svg’s for the top and bottom decoration (instead of the clouds, curtains, zigzags, etc.). What I’d like to know is what files we need to modify to add the svg’s into the theme, and what format the svg’s have to be in.

It looks like we need to add it to the array within the vc_row.php. But it’d be nice to know if missing any extra steps, or if there’s anything we need to do to ensure the svg’s display correctly.

Many thanks.

]]>
https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2750 <![CDATA[Reply To: Creating custom top/bottom decorations]]> https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2750 Fri, 13 Jun 2014 10:32:21 +0000 IshYoBoy Hi ScaryBeasties,

You have chosen quite a tough task, so be prepared to spend some amount of time on it :)

First of all modifying the files in the parent theme or plugin directly is not recommended as this would cut off all future updates (which might be necessary once new WordPress version comes out). There might be cases when it’s not possible to make it outside of the parent theme so feel free to let us know and we can modify the theme by adding a filter/action or two to make it possible.

So the necessary steps are:

1. Modify the backend dropdown containing all decoration types perfectly using the Visual composers API:

https://kb.wpbakery.com/index.php?title=Vc_remove_param
https://kb.wpbakery.com/index.php?title=Vc_add_param

Now that the users can select the given decoration type you need to:

2. Modify the front-end template (vc_row.php – you got this perfectly ;)

The svg files need to be in an array as we have 3 types of SVGs.

– Static 1 – with variable width and alway 50px height – They have always the same width (not stretching based on the browser’s width ) E.g. Arrow
– Static 2 – with 3000px width and 50px height – the same as small ( E.g. clouds, curtain, zigzag)
– Dynamic with 100% width and 100% height – these are the ones that stretch (slopes, rounded, triangle, etc..)

Static SVG cannot be repeated (like backgorund-image for example) and therefore they need to be either the exact size or you need to manually repeat them while creating the SVG in illustrator. This is why they are 3000px. Browsers are smaller than this :)

3. Copy the polygon, path, polyline, rect, etc.. So only the contents of the SVG file not the defining “header”, and add it to the array as we have done.

Now set either exact size (static 1, or 2) or dynamic 100% to this array as well.

Do not forget to add the class “ish-color” to each polygon, polyline, etc inside one array item. So if you have 50 triangles in one row decoration you will have to add the class to each of them. This class ensures you will be able to apply css styles to each shape of the given decoration.

4. Add the decoration class to the CSS styles based on the type of the shape ( static 1, 2 or dynamic).

The styles we use can be found in “ishyoboy-leepho-assets/ishyoboy-shortcodes/assets/frontend/css/sass/_ish_row.scss” mainly lines 81 and 93 based on the type of SVG. (You don’t have to modify this file if you can reproduce the code in your own CSS stylesheet and attach it via child theme).

5. Last step is to ensure the correct colors are applied to the given SVG shape. These colors are generated only when theme options are saved. If you use one of these SVG shapes:

polyline.ish-color, path.ish-color, polygon.ish-color, rect.ish-color

Then they are already styled to play well with the row colors. If you use new SVG shapes you will need to ensure the right colors are applied. Our dynamic css looks something like:

The dynamic colors based on your ThemeOptions color settings can be found in “/wp-content/themes/leepho/assets/framework/wp/dynamic_css/inc/dynamic_colors.php”

If it helps you we can add an action_hook to the end of:

‘wp-content/themes/leepho/assets/framework/wp/dynamic_css/dynamic_css.php’

So that you could attach a function which could echo the necessary css the way we do it in dynamic_color.php without having to touch the mentioned file.

Well, this is the idea behind it. Hope we managed to explain it clearly enough.

P.S. We provide customization services for flat hourly rate so if you’re lost and need it to be done, mail us at “hello@ishyoboy.com” for more information.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2756 <![CDATA[Reply To: Creating custom top/bottom decorations]]> https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2756 Fri, 13 Jun 2014 13:54:23 +0000 ScaryBeasties Thank you,
That worked perfectly :)

]]>
https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2767 <![CDATA[Reply To: Creating custom top/bottom decorations]]> https://support.ishyoboy.com/forums/topic/creating-custom-topbottom-decorations/#post-2767 Sun, 15 Jun 2014 08:45:07 +0000 IshYoBoy Very glad to hear that! Please feel free to share the link once it’s live so we could see what you have invented.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>