Adding a picture into a category page

Posted in: Newspaper
Post count: 42

Hello there,

I’d like to add a logo on just some pages within my website – so just for the category food and drink here: http://citysavvyluxembourg.com/category/lifestyle/food-and-drink/ under the title. Where in the editor can I add this?

Thanks in advance,

Farrah

Post count: 23312

Hello FarrahGillani,

I have checked your website and I saw that you are using the category template style 2 for your category pages, right? So, if you want to add your logo under the category title, you will have to add this in td_category_template_2.php. You can add your logo image using the do_shortcode method. First of all, you will have to create your shortcode for your logo, using the Text Block element from Visual Composer and then you will have to add this under the title in the core file.
1) Create your shortcode, like this -> http://screencast.com/t/7wrTbk1sO -> http://screencast.com/t/aLBXrotZzYr
2) Place the code in the corresponding category template file, like this -> http://screencast.com/t/FZcfgYnMie
The code for this example is ->

<?php echo do_shortcode('[vc_row][vc_column][vc_column_text]<a href="http://192.168.0.214/site2/logo-header/"><img class="alignnone size-full wp-image-3166" src="http://192.168.0.214/site2/wp-content/uploads/2016/07/logo-header.png" alt="logo-header" width="272" height="90" /></a>[/vc_column_text][/vc_column][/vc_row]');?>

The result you should see here -> http://screencast.com/t/Hasz018hCGfd

Hope this helps!

Thanks for your understanding!

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