- Find:
- //////////////////////////////////////////////////////////////////
- // Tagline box shortcode
- //////////////////////////////////////////////////////////////////
- add_shortcode('tagline_box', 'shortcode_tagline_box');
- function shortcode_tagline_box($atts, $content = null) {
- $str = '';
- $str .= '<section class="reading-box">';
- if($atts['link'] && $atts['button']):
- $str .= '<a href="'.$atts['link'].'" class="continue button large green">'.$atts['button'].'</a>';
- endif;
- if($atts['title']):
- $str .= '<h2>'.$atts['title'].'</h2>';
- endif;
- if($atts['description']):
- $str.= '<p>'.$atts['description'].'</p>';
- endif;
- if($atts['link'] && $atts['button']):
- $str .= '<a href="'.$atts['link'].'" class="continue mobile-button button large green">'.$atts['button'].'</a>';
- endif;
- $str .= '</section>';
- return $str;
- }
- Replace it with:
- //////////////////////////////////////////////////////////////////
- // Tagline box shortcode
- //////////////////////////////////////////////////////////////////
- add_shortcode('tagline_box', 'shortcode_tagline_box');
- function shortcode_tagline_box($atts, $content = null) {
- $str = '';
- $str .= '<section class="reading-box">';
- if($atts['link'] && $atts['button']):
- $str .= '<a href="'.$atts['link'].'" target="_blank" class="continue button large green">'.$atts['button'].'</a>';
- endif;
- if($atts['title']):
- $str .= '<h2>'.$atts['title'].'</h2>';
- endif;
- if($atts['description']):
- $str.= '<p>'.$atts['description'].'</p>';
- endif;
- if($atts['link'] && $atts['button']):
- $str .= '<a href="'.$atts['link'].'" target="_blank" class="continue mobile-button button large green">'.$atts['button'].'</a>';
- endif;
- $str .= '</section>';
- return $str;
- }