McTomTom
Forum Replies Created
-
Hi alfalipo,
i found following solution for my “responsive” theme. Unfortunately you have to paste a little script into the functions.php (Theme functions) which is inside the themes folder “includes” . It doesn’t work in the child theme – so you have to put it in again every time you update your theme. But it works. But be careful: don`t change the functions.php in the root folder of your theme – its, as i said, inside the subfolder includes. Simply put in this scrip directly at the top after the php code starts:
<?php
// Exit if accessed directly
if ( !defined(‘ABSPATH’)) exit;add_action(‘pre_get_posts’,’wpse50761_alter_query’,15);
function wpse50761_alter_query($query){
if( $query->is_main_query() && is_post_type_archive(‘event’) ){
$query->set(‘orderby’,’eventstart’);
$query->set(‘order’,’DESC’);
}
}/**
* and from here goes the original script – hope it helps ??Tom
Forum: Themes and Templates
In reply to: [Responsive] [Theme: Responsive] Downgrade to 1.7.4. possible?Hi again Email, my issue is solved, after installation of a fresh child theme – like you recommended – and upgraded to 1.7.6. What had finally caused the trouble, I don’t know. But now I′m happy and like to say again thanks for your fast and kind support. Greetings Tom
Forum: Themes and Templates
In reply to: [Responsive] [Theme: Responsive] Downgrade to 1.7.4. possible?Hi Emil, thanks for your reply. I`m a newbie to wordpress. To be honest I would like to stay with 1.7.5. But since the upgrade from 1.7.4. all white widgets fields in sidebars (except on Home!) are shrinking parallel to the browser downsizing. Means, if I scale the window to smaller resolution than 600px the widget fields getting smaller and smaller (ca. 400 px bowser width = ca. 30px widget fields). I did all recommended before – like creating a child theme with your Child Theme example – but I can’t figure out the fault.
If you like, here you can take a look: https://niasony.com/en/category/press-en/
But be aware, I`m still trying to fix it! ??With 1.7.4 the sidebares scaled perfectly down to ca. 240 px width, but now I`m totally lost. If there is no other chance I will set up a a new, fresh child theme. I love your theme and by the way the few modifications, which cost me a lot of try and error as a bloody beginner. But than I have to do all modifications and standard setups again. Am I right?
One annotation: In “Responsive Theme” the right “function.php” to edit is not the one in root, but in subfolder “includes”. It seems not to work, if I create a duplicate of this folder and the php-file in my child theme root. As far as I know, you have to exchange the file in the parent themes folder. A backup of this site is recommended, because it will be overwritten by the next theme update.
Yeahhhh! It works: https://niasony.com/en/events/event/ ??
Thank you so much for your engagement and your patience, Stephen. Great support! And again: It’s a great PlugIn and the only one I know out of the popular five Event PlugIns, which works with Responsive Theme and Multi language for me.
Hey Stephen, first – I should have read the comment in the responsive themes function.php in the root:
* WARNING: Please do not edit this file in any way
*
* load the theme function files
*/
require ( get_template_directory() . ‘/includes/functions.php’ );
…So i modified functions.php in folder includes. No php error furthermore, but no effect on the sorting. I put the code in at the beginning and in the end. So I’m still lost
Would it in some way help, if i would post the whole sitecode here (about 550 raws)? ??
Hi Stephen, thanx a lot for your fast reply. Unfortunately it doesn’t work for me. I copied the code (add_action(‘pre_get_posts’, …) in my themes function.php – but all what i get is a php error. What am I doing wrong? Should I take another file? Sorry, but I’m lost here again …
May I make a wish for a checkbox in the PlugIns settings – similar to the one Dropdown ASC/DESC in the widgets? ??
Anyway, the Event Organiser PlugIn is the only one of 5, which is working correctly with my Responsive Theme and WPML (3 languages)!!!! :9 I only had to do a few simple modifications in the themes templates.