Before you ask please READ THIS

Change main and sub title pasword protected items

in FatMoon Posts: 136
Hi Guys,
a number of items (all bricks starting from British american tobacco) are password protected. see attach.

or go see http://bumsch.com

Main title:

When not unlocked the title says...
(lock symbol) this content is password protected

I would like the title to say...
(lock symbol) work item title


Sub title:

I would like the subtile that says....
Click and enter your password to view content

to say...
This content is password protected
Screen Shot 2016-11-24 at 11.25.01 .png
2636 x 1706 - 5M

Comments

  • AirAir
    edited November 2016 Posts: 10,970
    Hello:-)

    Go to fatmoon\advance\utilities\cpt_work.php ~726 and change this
    
    			if ( post_password_required( $post_id ) ) {
    
    				$html .= '<div class="texts_group">';
    				$html .= '<h2 class="post-title">';
    				$html .= '<span class="fa fa-lock"></span>' . esc_html__( 'This content is password protected', 'apollo13-framework' );
    				$html .= '</h2>';
    
    				$html .= '<div class="excerpt">';
    				$html .= '<p>' . esc_html__( 'Click and enter your password to view content', 'apollo13-framework' ) . '</p>';
    				$html .= '</div>';
    				$html .= '</div>';
    
    			} else {
    
    to
    
    			if ( post_password_required( $post_id ) ) {
    
    				$html .= '<div class="texts_group">';
    				$html .= '<h2 class="post-title">';
    				$html .= '<span class="fa fa-lock"></span>' . get_the_title($post_id);
    				$html .= '</h2>';
    
    				$html .= '<div class="excerpt">';
    				$html .= '<p>' . esc_html__( 'This content is password protected', 'apollo13-framework' ) . '</p>';
    				$html .= '</div>';
    				$html .= '</div>';
    
    			} else {
    
    Check if it will work.

    With kind regards.
    Post edited by Air on
  • Posts: 136
    Yes! Very happy with that! Thank you!
  • Posts: 136
    Just one more question about this one.

    Can I delete the word "Protected:" in between the lock symbol and the title? see attach.

    Thanks again!
    Screen Shot 2016-11-25 at 12.54.38 .png
    1456 x 818 - 2M
  • AirAir
    Posts: 10,970
    This is WordPress thing, so maybe try this plugin https://wordpress.org/plugins/remove-protected/

    With kind regards.
  • Posts: 136
    Wow, that actually worked! Cheers!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!