Tsvetan Tsakov
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: WooCommerce] Custom email for certain productis there a way? anyone?
Forum: Fixing WordPress
In reply to: How to set different footer to selected pagesI tried and worked for the pages in the array, but for all other pages, there was no footer at all
Here is my child’s theme footer.php: https://gist.github.com/FileSubmit/1b6f2075b03cc762fc0c35ddeb9709ec
Forum: Fixing WordPress
In reply to: How to set different footer to selected pagesthis doesn’t seem to work (or maybe i am setting it up the wrong way), but the first one, with separate footer-type1.php file worked for the pages in array but the other pages displayed with no footer
Forum: Fixing WordPress
In reply to: How to set different footer to selected pagesalright!
in my page.php i replaced
<?php get_footer(); ?>
with
<?php $type1 = array(15329,42); // where these are page ids that get the type 1 footer
if ( is_page( $type1 ) || is_post ( $type1 ) ) {
get_footer( ‘type1’ );
} else {
get_footer();
} ?>and on the pages within the array it worked, but on all other pages, there was no footer
p.s. i see you’ve updated the code. let me try now
Forum: Fixing WordPress
In reply to: How to set different footer to selected pagesI am using Mediso theme.
the footer contains 4 widgets
this is my childs footer.php https://infinit.io/_/9qiVVeS
Here is the answer – https://spunmonkey.design/chrome-beta-44-causing-problems-with-httpsssl/
install this plugin https://github.com/IshYoBoy/aaa-ishyoboy-google-chrome-44-ssl-fix and remove it after the next chrome update
Forum: Fixing WordPress
In reply to: How to order posts by date asc in particular category?my mistake, i was puting the code in the wordpress functions.php instead of functions.php of the theme! Thanks for your time ??
Forum: Fixing WordPress
In reply to: How to order posts by date asc in particular category?okay, so i put
function category_archive_sort_posts($query) {
if ( !is_admin() && $query->is_main_query() ) {
if ( is_category( 1192 ) ) {
$query->set( ‘orderby’, ‘date’ );
$query->set( ‘order’, ‘ASC’ );
}
}
}in /wp-includes/functions.php and then i put
<?php add_action(‘pre_get_posts’,’category_archive_sort_posts’); ?> in category-1192.php in my theme folder but nothing changes, it only brakes the pagination at the end of the page. Can you help me?
Forum: Fixing WordPress
In reply to: How to order posts by date asc in particular category?should i add this code to category.php or in category-{slug}.php