reti
Forum Replies Created
-
Forum: Localhost Installs
In reply to: Error establishing a database connection, XAMPPThank you guys. I am very grateful. @dion, that’s what this was about.
Forum: Localhost Installs
In reply to: Error establishing a database connection, XAMPPForum: Fixing WordPress
In reply to: Two style.css file versionsThanks for the answers. Here you go:
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = 'parent-style'; wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( $parent_style ), wp_get_theme()->get('Version') ); }
Solved. I changed the HTML:
<button class="dropbtn taxonomy-dropdown"></button> <div class="taxonomy-dropdown-content"></div>
- This reply was modified 4 years, 9 months ago by reti.
Thanks. Solved. The “g1-dropable” class was missing.
Forum: Fixing WordPress
In reply to: isset, variable with ‘=’Thanks!
Forum: Fixing WordPress
In reply to: isset, variable with ‘=’It works well:
if ( strpos($_SERVER['REQUEST_URI'], 'gdgb') )
That’s enough for now, but if anyone knows how to solve it differently, I’d appreciate an answer.
Forum: Fixing WordPress
In reply to: modifications aren’t included in a child themeThey don’t care about it. All I hear all the time is that it’s not a theme-related question. I asked the same question on StackExchange. It’s solved. You’ve helped a lot too. Thanks!
- This reply was modified 4 years, 10 months ago by reti.
Forum: Fixing WordPress
In reply to: modifications aren’t included in a child themeI wrote so:
if ( ! function_exists( 'bimber_capture_entry_featured_media' ) ) : function bimber_capture_entry_featured_media_my_modifications( $args ) { //function code with my modifications } endif;
It was successful added, but doesn’t work.
Maybe it’s usefull information:
1) file theme.php is added in functions.php file in parentTheme/includes folder in this way:require_once BIMBER_INCLUDES_DIR . 'theme.php';
2) function is called by ‘echo’ in another function
Here are php files:
– https://srv19859.microhost.com.pl/phpfiles/functions.php.txt
– https://srv19859.microhost.com.pl/phpfiles/theme.php.txtForum: Fixing WordPress
In reply to: modifications aren’t included in a child themeThank you very much for your answer. I called that function:
<?php function checkFunction(){ if( !function_exists( ‘bimber_render_entry_featured_media’ )) { ?> <script>alert("Hello!")</script> <?php } } add_action('wp_footer', 'checkFunction'); ?>
The ‘Hello!’ alert appears, so the ‘bimber_render_entry_featured_media’ function should be overwritten in child theme functions.php, right? This is not so. A message about the redeclaration will appear.
- This reply was modified 4 years, 10 months ago by reti.
Forum: Fixing WordPress
In reply to: modifications aren’t included in a child themeI can’t override the function because there’s a redeclaration error.
Forum: Fixing WordPress
In reply to: modifications aren’t included in a child themeMy functions.php is already in child theme folder and child theme is active.
Forum: Fixing WordPress
In reply to: isset, display excluded posts with a tagThanks, I’ll check it and let you know.
Forum: Fixing WordPress
In reply to: isset, display excluded posts with a tagHi,
thanks for your answer. Look at this. These three posts with tag “gdgb” you can see only with “&show_excluded”. And these are two functions which do it:
function exclude_tagged_posts( $query ) { if ( $query->is_main_query() && $query->is_home() ) { $query->set( 'tag__not_in', array( 402 ) ); } } add_action( 'pre_get_posts', 'exclude_tagged_posts' ); function show_excluded_posts( $query ) { if ( $query->is_home() && isset( $_GET['show_excluded'] ) ) { $query->set( 'tag__not_in', array( null ) ); } } add_action( 'pre_get_posts', 'show_excluded_posts' );
It works well. Problem is solved, as I wrote. But when I call a function which reset all of facets (button “Alle zeigen”) from URLs with &show_excluded, the &show_excluded element is left. I don’t know how to get rid of it.
Forum: Fixing WordPress
In reply to: modifications aren’t included in a child themeAlternatively, how can I override a function from includes/theme.php in functions.php?
- This reply was modified 4 years, 10 months ago by reti.