boplinger
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Arcade Basic] Unwanted Space at top of site viewed in ChromeBojan, yes thanks so much, this is correct. I didn’t think of it because Firefox didn’t have the same problem, live and learn!
Cheers.Forum: Themes and Templates
In reply to: [Arcade Basic] Site Title Resizinghas anyone helped you out with this, I’m having that problem as well.
Or better said: How to display two random-post sections that are each under their own category
Forum: Themes and Templates
In reply to: Child theme php file referencing- how do I exactly?Thanks Paul,
I see. But when I uploaded a function.php in the child folder I got an error. Anyway I gave up and used a plugin.
I did not build this old theme but inherited all it’s idiosyncrasies. Because the theme had hard coded links in the header I choose an enqueue method for that scenario. It’s interesting to see what it generated as a result.
This is in the style.css file:
/*
Theme Name: Child
Theme URI: https://www.elegantwordpressthemes.com
Template: EarthlyTouch
Author: https://www.boplinger.com
Version: 0.1.1432608545
Updated: 2015-05-26 02:49:05
*/@charset “UTF-8”;
And this is in the function.php:
<?php
// Exit if accessed directly
if ( !defined( ‘ABSPATH’ ) ) exit;// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:if ( !function_exists( ‘chld_thm_cfg_parent_css’ ) ):
function chld_thm_cfg_parent_css() {
wp_enqueue_style( ‘chld_thm_cfg_parent’, trailingslashit( get_template_directory_uri() ) . ‘style.css’ );
wp_enqueue_style( ‘chld_thm_cfg_ext1’, trailingslashit( get_theme_root_uri() ) . ‘EarthlyTouch-child/style-Green.css’ );
wp_enqueue_style( ‘chld_thm_cfg_ext2’, trailingslashit( get_theme_root_uri() ) . ‘EarthlyTouch-child/style-Green.css’ );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_parent_css’ );if ( !function_exists( ‘chld_thm_cfg_child_css’ ) ):
function chld_thm_cfg_child_css() {
wp_enqueue_style( ‘chld_thm_cfg_child’, get_stylesheet_uri() );
}
endif;
add_action( ‘wp_enqueue_scripts’, ‘chld_thm_cfg_child_css’, 999 );// END ENQUEUE PARENT ACTION
Forum: Themes and Templates
In reply to: Child theme php file referencing- how do I exactly?Thank you but this is extremely confusing to me!
Can you tell me if the child function.php code below correct?FYI EarthlyTouch is the parent theme Child is the child. For some reason there is a style sheet that is blank but just pulls in the green-style.css
[ Moderator note: Code fixed, please wrap code in backticks or use the code button. ]
/* Theme Name: Child Theme URI: https://www.elegantthemes.com/ Author: https://www.boplinger.com Template:EarthlyTouch Version: 0.1 */ @import url("../EarthlyTouch-child/style-Green.css"); <?php /** * Enqueues child theme stylesheet, loading first the parent theme stylesheet. */ function EarthlyTouch_custom_enqueue_child_theme_styles() { wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style-Green.css' ); } add_action( 'wp_enqueue_scripts', 'EarthlyTouch_custom_enqueue_child_theme_styles' );
Forum: Themes and Templates
In reply to: Child theme php file referencing- how do I exactly?Here’s the new staging url
7c8.96a.myftpupload.com
Forum: Fixing WordPress
In reply to: menu disappeared and can't update the WP version because too old pHPYes you’re right about upgrading the theme. But for the time being the client really needs her menu up and I did follow that guide. Anyway you’ll be happy to know I was finally able the get the menu up and running! cheers
Forum: Fixing WordPress
In reply to: menu disappeared and can't update the WP version because too old pHPHi again
I was able update the theme. But the theme doesn’t support a custom menu. I added the code below and now some of the menu items show up but not as drop downs and not as I would want. Any idea what else I need to do? I can’t find anything specific to this issue. Thanks!
https://speakingintonguesfilm.info/
I added this code to the header:
[Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]
Forum: Fixing WordPress
In reply to: menu disappeared and can't update the WP version because too old pHPIt was built by someone for this client, for free ??
They call it SIT but it’s not official.In which php file would the function be declared elsewhere I couldn’t find it in functions?
Yes I did add php5 and updated the WP version, but we had to revert back to a backup when the structure broke.
Thanks for your help!
Forum: Fixing WordPress
In reply to: menu disappeared and can't update the WP version because too old pHPThe menu had already been created. Below is the code in the header, but I see no other referrel to “dtab_list_tabs” in the site. As I say this theme is wonky and not usual. Thanks James!
“<!–[Header]–>
<div id=”header”>
<!– menu –>
<div id=”menu”>
<?php
if (function_exists(‘dtab_list_tabs’)) {
dtab_list_tabs();
}
?>
</div>
</div>
<!—[/Header]—>”Forum: Fixing WordPress
In reply to: menu disappeared and can't update the WP version because too old pHPIt was php4. I was finally able to add to php5 code to the htaccess file and update WP. However this didn’t fix the missing menu problem. Unfortunately this theme was created by someone way back in 2010 with out any best code practices.
But then because of attempts to regain the menu by adding php code to the header, the theme structure broke down and we had to revert to a backup of a few days ago with the older WP version. I can update again, but am a little afraid to. The main thing is to get the menu back if possible.
So I’m not sure that I could get back to it – if I tried to switch it out for another theme, in order to see if the problem persisted in another theme.
Ps. Where is the file located in the plugin’s folder please and thanks.
Hi and yes,
I am having the very same problem of not being able to affect the css, in addition to not being able to change the thumbnail sizes as is offered in the “override thumbnail size” option for each gallery.
@jamminjames was this the template file that you adapted Jgallery-caption.php ?
Thanks
Thank you. It was suggested in another thread I started (sorry about that!) that I use Jetpack just to change the CSS. Not sure how to deal with Child themes but I can look into it.
CheersHi Thanks for your answers.
Since my first issue was resolved I didn’t want to waste your time, which is why I created another thread. Hmm Jetpack always wondered what that was all about. https://www.gobikeit.com/