Odpowiedź forum utworzona

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter duchu

    (@duchu)

    /* 2-Column Grid Layout */
    
    .widgets-grid-layout {
    	width: 100%;
    }
    
    .widgets-grid-layout:before,
    .widgets-grid-layout:after {
    	content: " ";
    	display: table;
    }
    
    .widgets-grid-layout:after {
    	clear: both;
    }
    
    .widget-grid-view-image {
    	float: left;
    	max-width: 50%;
    }
    
    .widget-grid-view-image a {
    	display: block;
    	margin: 0 2px 4px 0;
    }
    
    .widget-grid-view-image:image:nth-child(even) {
    	float: right;
    }
    
    .widget-grid-view-image:nth-child(even) a {
    	margin: 0 0 4px 2px;
    }
    
    .widgets-grid-layout .widget-grid-view-image img {
    	max-width: 100%;
    	height: auto;
    }
    
    /* Multi-Column Grid Layout */
    
    .widgets-multi-column-grid ul {
    	overflow: hidden;
    	padding: 0;
    	margin: 0;
    	list-style-type: none;
    }
    
    .widgets-multi-column-grid ul li {
    	background: none;
    	clear: none;
    	float: left;
    	margin: 0 -5px -3px 0;
    	padding: 0 8px 6px 0;
    	border: none;
    	list-style-type: none !important;
    }
    
    .widgets-multi-column-grid ul li a {
    	background: none;
    	margin: 0;
    	padding: 0;
    	border: 0;
    }
    
    .widgets-multi-column-grid .avatar {
    	vertical-align: middle;
    }
    
    /* List Layout */
    
    .widgets-list-layout {
    	padding: 0;
    	margin: 0;
    	list-style-type: none;
    }
    
    .widgets-list-layout li:before,
    .widgets-list-layout li:after {
    	content:"";
    	display:table;
    }
    .widgets-list-layout li:after {
    	clear:both;
    }
    .widgets-list-layout li {
    	zoom:1;
    	margin-bottom: 1em;
    	list-style-type: none !important;
    }
    
    .widgets-list-layout .widgets-list-layout-blavatar {
    	float: left;
    	width: 21.276596%;
    	max-width: 40px;
    	height: auto;
    	text-decoration: none;
    }
    
    .widgets-list-layout-links {
    	float: right;
    	width: 73.404255%;
    }
    
    .widgets-list-layout span {
    	opacity: 0.5;
    }
    
    .widgets-list-layout span:hover {
    	opacity: 0.8;
    }
    Thread Starter duchu

    (@duchu)

    Widzisz problem w tym, że za bardzo tam nie widać wskazówki. Ale wydaje mi się, że to musi siedzieć w katalogu jetpack. Niestety ale nic z poniższego kodu mi nie pasuje to tego co szukam :/

    /* 2-Column Grid Layout */
    
    .widgets-grid-layout {
    	width: 100%;
    }
    
    .widgets-grid-layout:before,
    .widgets-grid-layout:after {
    	content: " ";
    	display: table;
    }
    
    .widgets-grid-layout:after {
    	clear: both;
    }
    
    .widget-grid-view-image {
    	float: left;
    	max-width: 50%;
    }
    
    .widget-grid-view-image a {
    	display: block;
    	margin: 0 2px 4px 0;
    }
    
    .widget-grid-view-image:image:nth-child(even) {
    	float: right;
    }
    
    .widget-grid-view-image:nth-child(even) a {
    	margin: 0 0 4px 2px;
    }
    
    .widgets-grid-layout .widget-grid-view-image img {
    	max-width: 100%;
    	height: auto;
    }
    
    /* Multi-Column Grid Layout */
    
    .widgets-multi-column-grid ul {
    	overflow: hidden;
    	padding: 0;
    	margin: 0;
    	list-style-type: none;
    }
    
    .widgets-multi-column-grid ul li {
    	background: none;
    	clear: none;
    	float: left;
    	margin: 0 -5px -3px 0;
    	padding: 0 8px 6px 0;
    	border: none;
    	list-style-type: none !important;
    }
    
    .widgets-multi-column-grid ul li a {
    	background: none;
    	margin: 0;
    	padding: 0;
    	border: 0;
    }
    
    .widgets-multi-column-grid .avatar {
    	vertical-align: middle;
    }
    
    /* List Layout */
    
    .widgets-list-layout {
    	padding: 0;
    	margin: 0;
    	list-style-type: none;
    }
    
    .widgets-list-layout li:before,
    .widgets-list-layout li:after {
    	content:"";
    	display:table;
    }
    .widgets-list-layout li:after {
    	clear:both;
    }
    .widgets-list-layout li {
    	zoom:1;
    	margin-bottom: 1em;
    	list-style-type: none !important;
    }
    
    .widgets-list-layout .widgets-list-layout-blavatar {
    	float: left;
    	width: 21.276596%;
    	max-width: 40px;
    	height: auto;
    	text-decoration: none;
    }
    
    .widgets-list-layout-links {
    	float: right;
    	width: 73.404255%;
    }
    
    .widgets-list-layout span {
    	opacity: 0.5;
    }
    
    .widgets-list-layout span:hover {
    	opacity: 0.8;
    }
    Thread Starter duchu

    (@duchu)

    Tyle to ja wiem, tylko pytanie gdzie to znaleźć 🙂

    Forum: Motywy
    W odpowiedzi na: Zmiana szablonu w pliki
    Thread Starter duchu

    (@duchu)

    Nie o to mi chodziło, wiem gdzie w katalogach znajdują się szablony.

    Rozwiązaniem może być wejście do myphpadmin, następnie odszukanie w odpowiedniej bazie tabeli wp_option. W niej trzeba odnaleźć wpisy które informują o obecnej nazwie naszego szablonu i zmienić ją na dowolny inny który mamy zainstalowane.

    Dziękuję

    Forum: Motywy
    W odpowiedzi na: Umiejscowienie wtyczki na stronie
    Thread Starter duchu

    (@duchu)

    Przepraszam Panowie ale źle chyba sformułowałem o co mi chodzi. Chcę tą wtyczkę umieścić w header maksymalnie po prawej stronie. Rozumiem, że to co wcześniej pisaliście mogę analogicznie odnieść do nagłówka ?

    Chociaż wydaje mi się, że w przypadku tej wtyczki ( Enhenced Text Widget ), to działa ona tylko w zakresie sidebar.

    Forum: Motywy
    W odpowiedzi na: Umiejscowienie wtyczki na stronie
    Thread Starter duchu

    (@duchu)

    dokładnie mówiąc to tej

    <?php if ( function_exists('cn_social_icon') ) echo cn_social_icon(); ?>

    Chodzi mi o to, żeby maksymalnie do prawej strony ją przesunąć

    Forum: Motywy
    W odpowiedzi na: Problem z quote w motywie Zoren
    Thread Starter duchu

    (@duchu)

    Przed wygląda to tak

    blockquote:before, blockquote:after,
    q:before, q:after {
    	content: "";
    }
    blockquote, q {
    	quotes: "" "";

    Natomiast po dodaniu twojej sugestii tak

    blockquote:before, blockquote:after,
    q:before, q:after {
    	content: "";
    }
    blockquote, q {
    	quotes: "" "";
    {
    background-image: url("http://careers.petsmart.com/_images/left-quote.gif");
    padding:33px 40px;

    Dobrze rozumiem ?
    To że WP ma wbudowaną taką funkcję to wiem, tylko jak napisałem wyżej obecny theme coś ma chyba nie tak z quotes i dlatego musiałem to zastąpić wtyczką.

    Thread Starter duchu

    (@duchu)

    wyglada tak

    <?php get_header(); ?>
    <?php $options = get_option('accentbox'); ?>
    <div id="page" class="single">
    	<div class="content">
    		<article class="article">
    			<div id="content_box" >
    				<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    					<div id="post-<?php the_ID(); ?>" <?php post_class('g post'); ?>>
    					<?php if ($options['mts_breadcrumb'] == '1') { ?>
    						<div class="breadcrumb"><?php the_breadcrumb(); ?></div>
    					<?php } ?>
    						<header>
    							<h1 class="title"><?php the_title(); ?></h1>
    							<div class="post-info">
    
    								        <time><?php the_time('F j, Y'); ?></time>
    
    							</div>
    						</header><!--.headline_area-->
    						<div class="post-content box mark-links">
    							<?php the_content(); ?>
    							<?php wp_link_pages('before=<div class="pagination2">&after=</div>'); ?>
    							<?php if($options['mts_tags'] == '1') { ?>
    							<div class="tags"><?php the_tags('<span class="tagtext">Tags:</span>','') ?> </div>
    						<?php } ?>
    						</div><!--.post-content box mark-links-->
    <?php if($options['mts_social_buttons'] == '1') { ?>
    						<div class="social">
      <div id="social-icons">
    <span class="shareit">Share it!&nbsp&nbsp</span>
      <a title="Tweet this post" href="http://twitter.com/home/?status=<?php the_title(); ?>+-+<?php the_permalink(); ?>" rel="external nofollow" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/twitter.png" width="32" height="32" alt="Twitter" /></a>
      <a title="Digg this post" href="http://digg.com/submit?phase=2&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="external nofollow" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/digg.png" width="32" height="32" alt="RSS" /></a>
      <a title="Stumble this post" href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="external nofollow" target="_blank"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/stumbleupon.png" width="32" height="32" alt="LinkedIn" /></a>
      <a title="Bookmark this post at Delicious" href="http://del.icio.us/post?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>" rel="external nofollow" ><img src="<?php bloginfo('stylesheet_directory'); ?>/images/delicious.png" width="32" height="32" alt="Facebook" /></a>
      </div>
    <div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=193109300735690&xfbml=1"></script><fb:like href="<?php the_permalink(); ?>" send="false" show_faces="false" width="320" style="margin: 1.3em 0 0 1.2em;"></fb:like>
    </div>
    
    </div>
    <?php }?>
    <?php if($options['mts_related_posts'] == '1') { ?>
    								<?php
    								$categories = get_the_category($post->ID);
    								if ($categories) {
    								$category_ids = array();
    								foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id;
    
    								$args=array(
    								'category__in' => $category_ids,
    								'post__not_in' => array($post->ID),
    								'showposts'=>4, // Number of related posts that will be shown.
    								'caller_get_posts'=>1
    								);
    
    								$my_query = new wp_query( $args );
    								if( $my_query->have_posts() ) {
    								echo '<div class="related-posts"><h3>'.__('Related Posts','mythemeshop').'</h3><ul>';
    								while( $my_query->have_posts() ) {
    								++$counter;
    								if($counter == 2) {
    								$postclass = 'last';
    								$counter = 0;
    								} else { $postclass = ''; }
    								$my_query->the_post();?>
    
    								<li class="<?php echo $postclass; ?>">
    									<a rel="nofollow" class="relatedthumb" href="<?php the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>">
    									<span class="rthumb">
    										<?php if(has_post_thumbnail()): ?>
    											<?php the_post_thumbnail('related', 'title='); ?>
    										<?php else: ?>
    											<img src="<?php echo get_template_directory_uri(); ?>/images/relthumb.png" alt="<?php the_title(); ?>"  width='180' height='120' class="wp-post-image" />
    										<?php endif; ?>
    									</span>
    									<?php if (strlen($post->post_title) > 52) {
    										echo substr(the_title($before = '', $after = '', FALSE), 0, 52) . '...'; } else {
    										the_title();
    									} ?>
    									</a>
    								</li>
    								<?php
    								}
    								echo '</ul></div>';
    								}
    								}
    								wp_reset_query();
    								?>
    							<!-- .related-posts -->
    <?php }?>
    					</div><!--.g post-->
    					<?php comments_template( '', true ); ?>
    				<?php endwhile; /* end loop */ ?>
    			</div>
    </article>
    
    <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)