Custom Block Titles

Posted in: Newsmag
Post count: 2

Is there a way to customize block titles in this theme? Currently in the newsmag theme, if you’re using visual composer you can change the background color of the block title and the text. I was hoping to be able to customize the shape of the block titles but am not sure where to put/change the code for that.

Post count: 6535

Hi

To achieve that you’ll need some custom css as the theme does not have a built-in option. Please provide more specif detail about what you’re trying to dos so I can inspect this closer and maybe I can help.

Thanks!

Post count: 2

Hi,

That’s what I thought. I was hoping to make the block titles include a pointer arrow beneath them, like this:
http://stackoverflow.com/questions/18816486/how-can-i-make-a-pointy-arrow-with-a-div-in-css

It seems like the way to do that would be to create their own class and then change the block-title div to include the CSS from both?

Maybe this is way off-base but that’s the way I’m imagining it working right now.
Any insight would be greatly appreciated. Thanks!

Post count: 6535

Hi

To achieve that you have to edit theme’s core files and change the html structure for block title. A solution would be this one: http://screencast.com/t/VR5IdaQv9lhttp://screencast.com/t/1ki43BVpx
You just have to replace the code from td_block_template_1.php file with this one: http://pastebin.com/AMXmseUx then add this css in theme panel > custom code > custom css:

.arrowblock {
width:auto;
border-top: 1px solid transparent;
}
.arrowright {
float:right;
border-top: 15px solid transparent;
border-bottom: 15px solid transparent;
border-left: 30px solid green;
}
.rect {
width:90px;
height:10px;
background-color:transparent;
}

Note that this solution will affect all blocks titles. If you want to apply it only for some blocks you’ll need a new function which will be called on specif blocks. You can take the above code as example but if you’re not aware of the steps that must be taken in order to achieve the desired result mu advice is to look for someone who can help you with implementation because we can’t offer custom work.

I hope this helps.
Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.