Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #90842
    officedogs
    Participant

    Hi,

    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!

    #90854
    Pratik
    Participant

    Hi @officedogs,

    Can you post in your site url?

    Regards,
    Pratik

    #90859
    officedogs
    Participant

    Hi 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.

    #90860
    Pratik
    Participant

    I will need to see the site because I need to check the html codes.

    #90861
    officedogs
    Participant

    I’ve disabled the maintenance-plugin, you can take a look now, and I’ll enable it afterwards.

    Regards

    #90862
    Pratik
    Participant

    Ok, 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,
    Pratik

    #90863
    officedogs
    Participant

    Thank 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!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Promotion Headline Issue’ is closed to new replies.