Hallo,
ich benutze das Theme "Illdy" und habe einige Probleme mit dem Person Widget für die Team Sidebar. Wenn ich das Widget bearbeite kann ich zwar bei Entry meinen Text eingeben allerdings hätte ich das ganze gerne mit Zeilenumbrüchen. Also nach jedem Wort ein Umbruch. Bisher kriege ich es nur als eine Zeile hin.
Hier sind noch CSS und PHP Codes:
Code
/* 09. Team */#team {
width: 100%;
background: #fff;
padding: 80px 0 100px 0;
text-align: center;
}
#team .section-header {
width: 100%;
margin-bottom: 85px;
}
#team .section-content {
width: 100%;
}
#team .section-content .person {
width: 100%;
}
#team .section-content .person .person-image {
width: 125px;
margin-right: 25px;
float: left;
}
#team .section-content .person .person-image img {
max-width: 100%;
height: auto;
border-radius: 50%;
}
#team .section-content .person .person-content {
text-align: left;
}
#team .section-content .person .person-content h4 {
width: 100%;
margin: 12px 0 5px 0;
line-height: 1.25;
font-size: 20px;
color: #333;
text-transform: uppercase;
}
#team .section-content .person .person-content h5 {
width: 100%;
margin: 0 0 10px 0;
font-weight: 700;
font-size: 15px;
text-transform: uppercase;
}
#team .section-content .person .person-content p {
width: 100%;
margin: 0 0 10px 0;
line-height: 1.5;
font-weight: 300;
font-size: 15px;
font-style: italic;
color: #888;
}
#team .section-content .person .person-content .person-content-social {
width: 100%;
margin: 0;
padding: 0;
list-style-type: none;
}
#team .section-content .person .person-content .person-content-social li {
margin-left: 10px;
float: left;
}
#team .section-content .person .person-content .person-content-social li:first-child {
margin-left: 0;
}
#team .section-content .person .person-content .person-content-social li a {
width: 22px;
height: 22px;
line-height: 22px;
display: inline-block;
border-radius: 50%;
font-size: 12px;
color: #fff;
text-align: center;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s;
}
#team .section-content .person .person-content .person-content-social li a:hover {
opacity: 0.9;
}
#team .widget_illdy_person {
margin-top: 40px;
}
#team .widget_illdy_person:nth-child(1), #team .widget_illdy_person:nth-child(2), #team .widget_illdy_person:nth-child(3) {
margin-top: 0;
}
Alles anzeigen
PHP
<?php/** * The template for dispalying the team section in front page. * * @package WordPress * @subpackage illdy */?><?phpif ( current_user_can( 'edit_theme_options' ) ) { $general_title = get_theme_mod( 'illdy_team_general_title', __( 'Team', 'illdy' ) ); $general_entry = get_theme_mod( 'illdy_team_general_entry', __( 'Meet the people that are going to take your business to the next level.', 'illdy' ) );}else{ $general_title = get_theme_mod( 'illdy_team_general_title' ); $general_entry = get_theme_mod( 'illdy_team_general_entry' );}
?>
<?php if ( $general_title != '' || $general_entry != '' || is_active_sidebar( 'front-page-team-sidebar' ) ) { ?>
<section id="team" class="front-page-section"> <?php if( $general_title || $general_entry ): ?> <div class="section-header"> <div class="container"> <div class="row"> <?php if( $general_title ): ?> <div class="col-sm-12"> <h3><?php echo illdy_sanitize_html( $general_title ); ?></h3> </div><!--/.col-sm-12--> <?php endif; ?> <?php if( $general_entry ): ?> <div class="col-sm-10 col-sm-offset-1"> <p><?php echo illdy_sanitize_html( $general_entry ); ?></p> </div><!--/.col-sm-10.col-sm-offset-1--> <?php endif; ?> </div><!--/.row--> </div><!--/.container--> </div><!--/.section-header--> <?php endif; ?> <div class="section-content"> <div class="container"> <div class="row inline-columns"> <?php if( is_active_sidebar( 'front-page-team-sidebar' ) ): dynamic_sidebar( 'front-page-team-sidebar' ); elseif ( current_user_can( 'edit_theme_options' ) & defined("ILLDY_COMPANION") ): $the_widget_args = array( 'before_widget' => '<div class="col-sm-4 col-sm-offset-0 col-xs-10 col-xs-offset-1 widget_illdy_person">', 'after_widget' => '</div>', 'before_title' => '', 'after_title' => '' );
the_widget( 'Illdy_Widget_Person', 'title='. __( 'Mark Lawrance', 'illdy' ) .'&image='. esc_url( '/layout/images/front-page/front-page-team-1.jpg' ) .'&position='. __( 'Web Designer', 'illdy' ) .'&entry='. __( 'Creative, detail-oriented, always focused.', 'illdy' ) .'&facebook_url='. esc_url( '#' ) .'&twitter_url='. esc_url( '#' ) .'&linkedin_url='. esc_url( '#' ) .'&color=#f18b6d', $the_widget_args ); the_widget( 'Illdy_Widget_Person', 'title='. __( 'Jane Stenton', 'illdy' ) .'&image='. esc_url( '/layout/images/front-page/front-page-team-2.jpg' ) .'&position='. __( 'SEO Specialist', 'illdy' ) .'&entry='. __( 'Curious, tech-geeck and gets serious when it comes to work.', 'illdy' ) .'&facebook_url='. esc_url( '#' ) .'&twitter_url='. esc_url( '#' ) .'&linkedin_url='. esc_url( '#' ) .'&color=#f1d204', $the_widget_args ); the_widget( 'Illdy_Widget_Person', 'title='. __( 'John Smith', 'illdy' ) .'&image='. esc_url( '/layout/images/front-page/front-page-team-3.jpg' ) .'&position='. __( 'Developer', 'illdy' ) .'&entry='. __( 'Enthusiastic, passionate with great sense of humor.', 'illdy' ) .'&facebook_url='. esc_url( '#' ) .'&twitter_url='. esc_url( '#' ) .'&linkedin_url='. esc_url( '#' ) .'&color=#6a4d8a', $the_widget_args ); endif; ?> </div><!--/.row--> </div><!--/.container--> </div><!--/.section-content--></section><!--/#team.front-page-section-->
<?php } ?>