- This topic is empty.
Viewing 1 post (of 1 total)
-
AuthorPosts
-
November 22, 2014 at 11:01 am #188983kizzoboy11Participant
my website:
http://www.municipalefficiency.com
If you scroll down to the ‘Leadership’ section, you’ll see a long area for four (4) widgets. I’m using a template that expects me to put 4 widgets in there, but I only want one – which would be one for myself. Anyways, here’s the CSS for it. I need to figure out how to only have 1 widget and have that widget be centered. This is probably something easy, but I’m still new to the whole development thing.
Here’s the php text for it:
<?php
echo '<section class="our-team" id="team">'; echo '<div>'; echo '<div>'; echo '<h2 class="dark-text">'.__('Leadership','zerif-lite').'</h2>'; $zerif_ourteam_subtitle = get_theme_mod('zerif_ourteam_subtitle','Add a subtitle in Customizer, "Our team section"'); if(isset($zerif_ourteam_subtitle) && $zerif_ourteam_subtitle != ""): echo '<h6>'.$zerif_ourteam_subtitle.'</h6>'; endif; echo '</div>'; if(is_active_sidebar( 'sidebar-ourteam' )): echo '<div>'; dynamic_sidebar( 'sidebar-ourteam' ); echo '</div> '; else: echo '<div>'; the_widget( 'zerif_team_widget','name=Member 1&position=CEO&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); the_widget( 'zerif_team_widget','name=Member 2&position=CTO&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); the_widget( 'zerif_team_widget','name=Member 3&position=VP&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); the_widget( 'zerif_team_widget','name=Member 4&position=CFO&description=Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc dapibus, eros at accumsan auctor, felis eros condimentum quam, non porttitor est urna vel neque&fb_link=#&tw_link=#&bh_link=#&db_link=#&ln_link=#&image_uri='.get_template_directory_uri().'/images/product-bg.png' ); echo '<div>'; endif; echo '</div>'; echo '</section>';
?>
-
AuthorPosts
Viewing 1 post (of 1 total)
- The forum ‘Back End’ is closed to new topics and replies.