• metusalem

    (@metusalem)


    Simple problem: There is no space between message and read more link. I can not create this space in the admin. Please fix this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You could change the code in the file ‘public > class-ctcc-public.php’, adding extra classes.

    Find this code:

    				// The main bar content
    				$notification_text = wp_kses_post ( do_shortcode( $ctcc_content_settings['notification_text'] ) );
    				$notification_text = apply_filters( 'ctcc_notification_text', $notification_text );
    				$content .= sprintf ( 
    					'<span class="ctcc-left-side">%s %s</span><span class="ctcc-right-side">%s</span>',
    					$notification_text,
    					$more_text,
    					$button_text
    				);

    … and replace it with this code:

    				// Message
    				$notification_text = wp_kses_post ( do_shortcode( $ctcc_content_settings['notification_text'] ) );
    				$notification_text = apply_filters( 'ctcc_notification_text', $notification_text );
    				$content .= sprintf ( 
    					'<div class="ctcc-left-side">%s</div>',
    					$notification_text
    				);
    				
    				// Link 'Read more'
    				$content .= sprintf ( 
    					'<div class="ctcc-center">%s</div>',
    					$more_text
    				);			
    
    				// Button
    				$content .= sprintf ( 
    					'<div class="ctcc-right-side">%s</div>',
    					$button_text
    				);	

    Now use your stylesheet to add some styles to the three different parts, using ‘ctcc-left-side’, ‘ctcc-center’ and ‘ctcc-right-side’.

    Thread Starter metusalem

    (@metusalem)

    Thanks but wouldn’t that be changed in an update on the plugin?

    And isn’t it a bug that’s should be changed from your side? I guess all users have this problem…?

    I agree, this should be adjustable without the need to change the code of the php file first. Or even in the settings of the plugin.

    Btw: I’m just a user like you are, I’m not the author of the plugin ??

    Thread Starter metusalem

    (@metusalem)

    Ah, i see. Sorry, I thought you were ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No space between message and read more link’ is closed to new replies.