Tagged: Promotion Headline
- This topic has 6 replies, 2 voices, and was last updated 7 years, 7 months ago by
officedogs.
-
AuthorPosts
-
May 2, 2016 at 12:28 pm #90842
officedogs
ParticipantHi,
I want to know, if it is possible to change the title of the promotion headline in a image? I tried in the customizer as you can see in this picture and it worked in the preview. I saved it, but when I refresh the site, it changed to the custom theme promotion-line and I can’t find a way, that this picture is replacing the line?
If it is not possible this way, then maybe it is possible to change the font family, just of the first line? I found only a way to change the font-family of both lines…
Maybe you can help me in this?
Thank you!
May 2, 2016 at 2:16 pm #90854Pratik
KeymasterMay 2, 2016 at 3:41 pm #90859officedogs
ParticipantHi Pratik,
the URL is http://dogsperience.de but I have a maintanance Plugin running at the moment, so I don’t know, if this helps you.
May 2, 2016 at 4:01 pm #90860Pratik
KeymasterI will need to see the site because I need to check the html codes.
May 2, 2016 at 4:03 pm #90861officedogs
ParticipantI’ve disabled the maintenance-plugin, you can take a look now, and I’ll enable it afterwards.
Regards
May 2, 2016 at 4:22 pm #90862Pratik
KeymasterOk, so because of security issues, the images and all HTML tags were blocked in the promotion headline. But now, we can allow it.
To do this, you have two options:
1. Wait for new theme update as I have updated the options to take some html value. This may take some time because the release date is yet to be finalized.(Only major security issues get updated asap)2. You can update some code. For that, go to theme file adventurous/inc/panel/adventurous-theme-options.php and replace the old block at lines 1405 to 1410 with new code block:
Old code:if( isset( $input[ 'homepage_headline' ] ) ) { $input_validated['homepage_headline'] = sanitize_text_field( $input[ 'homepage_headline' ] ) ? $input [ 'homepage_headline' ] : $defaults[ 'homepage_headline' ]; } if( isset( $input[ 'homepage_subheadline' ] ) ) { $input_validated['homepage_subheadline'] = sanitize_text_field( $input[ 'homepage_subheadline' ] ) ? $input [ 'homepage_subheadline' ] : $defaults[ 'homepage_subheadline' ]; }
New Code:
if( isset( $input[ 'homepage_headline' ] ) ) { $input_validated['homepage_headline'] = wp_kses_post( $input[ 'homepage_headline' ] ) ? $input [ 'homepage_headline' ] : $defaults[ 'homepage_headline' ]; } if( isset( $input[ 'homepage_subheadline' ] ) ) { $input_validated['homepage_subheadline'] = wp_kses_post( $input[ 'homepage_subheadline' ] ) ? $input [ 'homepage_subheadline' ] : $defaults[ 'homepage_subheadline' ]; }
Now, option 1 is safer option but you might need to wait a bit however option 2 is faster but you need some knowledge of editing files and some coding or you might end up destroying the site. Taking a backup before performing this is very much recommended.
Use Option 2 at your own risk
Let me know how it works out.
Regards,
PratikMay 2, 2016 at 4:43 pm #90863officedogs
ParticipantThank you!
I don’t know yet whether I wait, or try to change myself with your code. If I try the second way I will tell you about it. Otherwise I simply wait for the update. Thank you anyway for your help!
-
AuthorPosts
- The topic ‘Promotion Headline Issue’ is closed to new replies.