-
AuthorPosts
-
August 13, 2021 at 9:41 am #1316569
Is there a way to have a default first block for all blog posts with transparent header.
August 15, 2021 at 9:17 pm #1316824August 16, 2021 at 10:26 am #1316926Thats a bit of a nightmare to be honest, 300 odd posts. is there a hook I can use to add a code block to the start of the post or is editing the theme files the best approach.
August 16, 2021 at 11:49 am #1316942Hi,
Why would you want to add a code block to the start of each post, this would not change the header to transparency.
Perhaps I’m not fully understanding, please try to fully explain what you are trying to do with examples, links and screenshots.Best regards,
MikeAugust 16, 2021 at 5:25 pm #1316986I want to use a transparent header like the page in the link in the private content.
Is there a way to apply this to all archive pages etc. with a fallback image / section that the menu sits on top of?
August 16, 2021 at 6:15 pm #1316993The last one may not have cleared it up for you, the theme is being applied to an existing site that has 70 odd case studies and 230 blog posts.
I want to apply a transparent header to all of these pages with an image like the one in that link without having to go in and update the 300 pages manually.
Most other teams I work with that give you the option of a transparent header, do so in the theme page where you set a default background image, which can usually be overridden on individual pages.
August 18, 2021 at 6:36 am #1317266Hi,
Thank you for the update.
The avf_header_setting_filter filter should help if you want to enable the transparent header option for posts without editing them manually. Usage example can be found in the following threads.
// https://kriesi.at/support/topic/transparent-header-on-woocommerce-product-page/#post-1224884
// https://kriesi.at/support/topic/change-theme-options-on-a-per-page-basis/#post-1286821
// https://kriesi.at/support/topic/header-visibility-and-transparency/#post-1227925You have to adjust the header_transparency and the header_class parameters.
$header['header_transparency'] = 'header_transparency'; $header['header_class'] .= " av_header_transparency";
But if you want to add new sections or elements under the header, then you would have to modify the template files directly, or use hooks such as ava_after_main_container or ava_after_main_title.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.