Fra Calo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: multiple loops and qtranslateif I change
$list_of_services = new WP_Query( 'cat=4')
to
$list_of_services = new WP_Query( 'p=90')
it works as expected…
(bu that’s not what I want)Forum: Fixing WordPress
In reply to: rss widget displaying wrong categoriestry setting this url in rss-widget-settings in wp-admin
https://maiolab.net/blog?cat=-36&feed=rss2
in this way it excludes cat-36
Forum: Plugins
In reply to: [Ultimate Category Excluder] Exclude from Widgets?childtheme functions.php (@moonhopper)
Forum: Fixing WordPress
In reply to: where are the ::before pseudo-element assigned?Plus I think that’s how Twenty Fourteen achieves 100%
I think that your suggestion might be right…
Forum: Themes and Templates
In reply to: Cannot get Child Theme style.css to override Parent style.cssit could be a cache extension on the server side(like APC or similar)
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Remove left sidebarto remove sidebar through css the only code necessary is
.site:before { display: none; } #secondary { display: none; }
Forum: Themes and Templates
In reply to: Twenty Twelve: Word-Break IssuesThanks Alch.,
You’ve got style!!Forum: Themes and Templates
In reply to: grid view on page-of-post.phptopic closed
Forum: Themes and Templates
In reply to: grid view on page-of-post.phpshoul I mark the thread Solved?
Forum: Themes and Templates
In reply to: grid view on page-of-post.phphere’s the code i used in functions, with the tag in_category
/*3 column-alchy-tweak */ add_filter('post_class','template_three_column_classes'); function template_three_column_classes( $classes ) { global $list_of_posts; if ( in_category( 'xxxxxxxxx' )) : $classes[] = 'three-column-post'; if( $list_of_posts->current_post%3 == 0 ) $classes[] = 'column-post-left'; endif; return $classes; }
Forum: Themes and Templates
In reply to: grid view on page-of-post.phpHi Alchymyth,
it gets opened in header
and with functions.php, depending on template, it gets targeted with different classeshere is the function that targets the classes..
function catchbox_body_classes( $classes ) { $options = catchbox_get_theme_options(); $layout = $options['theme_layout']; if ( function_exists( 'is_multi_author' ) && !is_multi_author() ) { $classes[] = 'single-author'; } if ( $layout == 'content-sidebar' && !is_page_template( 'page-disable-sidebar.php' ) && !is_page_template( 'page-fullwidth.php' ) && !is_page_template( 'page-onecolumn.php' ) && !is_page_template( 'page-of-post.php' ) ) { $classes[] = 'content-sidebar'; } elseif ( $layout == 'sidebar-content' && !is_page_template( 'page-disable-sidebar.php' ) && !is_page_template( 'page-fullwidth.php' ) && !is_page_template( 'page-onecolumn.php' ) && !is_page_template( 'page-of-post.php' ) ) { $classes[] = 'sidebar-content'; } elseif ( $layout == 'content-onecolumn' || is_page_template( 'page-onecolumn.php' ) && !is_page_template( 'page-disable-sidebar.php' ) && !is_page_template( 'page-fullwidth.php' ) && !is_page_template( 'page-of-post.php' ) ) { $classes[] = 'content-onecolumn'; } elseif ( is_page_template( 'page-disable-sidebar.php' ) || is_attachment() ) { $classes[] = 'singular'; } elseif ( is_page_template( 'page-fullwidth.php' ) || is_attachment() ) { $classes[] = 'fullwidth'; } elseif ( is_page_template( 'page-of-post.php' ) || is_attachment() ) { $classes[] = 'fullwidth'; } return $classes; } add_filter( 'body_class', 'catchbox_body_classes' );
#content div closes in the page-template, (it does the same in the page.php) .
as for my site I found a workaround working on .three-column-post css class,
Forum: Themes and Templates
In reply to: grid view on page-of-post.phpnow I have a problem with the pagetemplate syntax,
after the page content I have something that’s closing the #content and that’s messing up styles,do you see what it is?
Forum: Themes and Templates
In reply to: grid view on page-of-post.phpI found the in_category tag that seems to work…
any known contraindications?Forum: Themes and Templates
In reply to: grid view on page-of-post.phpthanks for the effort but it doesn’t work,
it still targets the page content + posts —I have an idea:
to bring in the posts of certain category i use the array$args = array( 'category_name' => 'portfolio', );
you can see it in page template at line 38,
do you think that integrating this in functions could be an optimal solution?
Forum: Themes and Templates
In reply to: grid view on page-of-post.php