Was ready to give up on this theme because of a few weird issues. In no particular order:
- Would enable slider on homepage / frontpage only, but it would then appear on other pages
- Enabling header image on pages with featured image would not show an image
- Viewing any of these pages in the customizer view would show the correct header and image
- The styles of the last-viewed page would then be stuck, e.g. the static header image of a page with a featured image would then be used for every featured image page / post
I traced the
.custom-header:before
selector to
custom-css.php
and the
nepalbuzz_header_bg_custom_css
and
nepalbuzz_custom_css
methods. The problem is, since you're caching
nepalbuzz_custom_css
as a transient, the custom background CSS wasn't being refreshed between different page views, which meant the header image of the last-cached background css was being output. Uncommenting
nepalbuzz_flush_transients();
on Line 22 resolved some of that for me, but if you do want to take advantage of memcache, you probably want to rewrite some of the logic there.