Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
srchus
tagDiv Member

Hello!
Thank you!
I had not copied the file taxonomy.php in my child theme.
After copying it works correctly.

Hugs!

srchus
tagDiv Member

I understand that it is not possible to configure it from the control panel.
But is it impossible to add a background from code?

It is possible that I was not clear enough in my question. Im sorry.
Simply adding this code would already work:

`$td_post_featured_image = td_util::get_featured_image_src($post->ID, 'full');
if (!empty($td_post_featured_image)) {
td_js_buffer::add_to_footer(
'jQuery(window).ready(function() {' . "\r\n" .
'(function(){' . "\r\n" .
'jQuery("#td-outer-wrap").css("background","url(' . $td_post_featured_image . ') fixed");' .
'jQuery("#td-outer-wrap").css("background-repeat","no-repeat");' .
'jQuery("#td-outer-wrap").css("background-size","cover");' .
'})();' . "\r\n" .
'});'
);
}`

Doesn’t the template have a cleaner way to do it?
Thank you!

  • This reply was modified 6 years by srchus.
  • This reply was modified 6 years by srchus.
Viewing 2 posts - 1 through 2 (of 2 total)