TT
Forum Replies Created
-
Forum: Plugins
In reply to: [Enable Media Replace] Not Workingsame problem here.
It says it is only compatible up to 4.1.6
I’m running 4.2.3. Hopefully they update it, this would be so helpful!
Forum: Fixing WordPress
In reply to: action only if at top of pageI got it! I’m so smart
var top1 = jQuery(window).scrollTop() ; if(top1 < 200) { jQuery('html,body').animate({ scrollTop: jQuery('.content_wrapper').offset().top }, 1000); }
Forum: Fixing WordPress
In reply to: setting up a child themeIt’s a theme called Oyster that I found on themeforest, maybe I shouldn’t ask for help here on it. It’s okay if I ask general questions though right? They won’t really support me for WordPress questions, just very basic troubleshooting with their theme.
I’ll do a little research and see what I can find out about hooks
Forum: Fixing WordPress
In reply to: setting up a child themeVery helpful, and the section about Template Files and the link there to the Template Hierarchy were good reads.
I realize now my problem is that my website wasn’t looking for my .php in the subfolder.
A subsection of the wordpress help page you linked to is called “Referencing / Including Files in Your Child Theme” talks about the “get_stylesheet_directory()”.
I believe this should go into my functions.php file, but for some reason I continue to get the white screen of death every time I put something into my functions.php file. I’m not sure I input the code right
<?php require_once( get_stylesheet_directory() . '/core/registrator/css-js.php' ); ?>
I also changed a sprite (.png file), but it pulls up the old one.
Starting to feel a little overwhelmed, maybe this is too technical for me and I should just write down the changes I make to the parent theme.
Forum: Fixing WordPress
In reply to: setting up a child themeAndrew, this works great for changing my .css file with the Child Theme.
Is there a specific selector for changing code in .php files? Or would it be a completely different method?
Forum: Fixing WordPress
In reply to: Modifying a theme .php "custom_css"hmmmm, I also tried making the change directly in the main theme css-js.php file and it didn’t change things
Forum: Fixing WordPress
In reply to: setting up a child themesuccess!!!!!!!! Andrew ??
Forum: Fixing WordPress
In reply to: setting up a child themethanks andrew.
I am still struggling to edit my website with the child.
I found a piece of code I want to tweak, it is in a subfolder of the original theme in a file called “theme.css”
It’s buried way down on line 1523, I want to change the highlighted numbers here:
https://postimg.org/image/l656id0fr/I tried pasting this code in my style sheet like this, but it didn’t change anything:
/* Theme Name: Oyster Child Theme URI: https://w-ard.com/wp-content/themes/gt3-wp-oyster-child/ Description: Oyster Child Theme Author: wallace Author URI: https://w-ard.com Template: gt3-wp-oyster Version: 2.6 Tags: light, responsive-layout Text Domain: gt3-wp-oyster-child */ .logo_sect { padding: 0px 0 6px 29px; min-height: 25px; display: inline-block; float: left; vertical-align: middle; font-size: 0; line-height: 0; }
I also tried making a copy of the theme.css in the same folder structure in the child folders, and tweak the code there, but delete the rest out because I didn’t want to overwrite it, but this didn’t work.
/*------------------------------------- [Master Stylesheet] Project: Oyster Child WordPress Theme Version: 1.0 (build 7d95248) ---------------------------------------*/ .logo_sect { padding: 0px 0 6px 29px; min-height: 25px; display: inline-block; float: left; vertical-align: middle; font-size: 0; line-height: 0;
My last effort was to copy the theme.css in to the child folder and keep it intact but just change that line, but that didn’t work either.
Forum: Fixing WordPress
In reply to: setting up a child themethanks for all your help questas, I’m looking into your links now
seems like updating my functions file gives me a white screen of death again for some annoying reason
<?php .body { text: black; } ?>
Not a big deal though because what I want to do is change things in my theme and not add functions.
Forum: Fixing WordPress
In reply to: setting up a child themethanks again questas! It works fine with the code like you posted. Should I be concerned whether or not I am “enqueue(ing) the parent and child theme stylesheets”
The website seems to work without the functions.php file
As for the tweaks I want to do, are you saying I should copy the bit of code I want to change from, for example, “theme.css” file and put that into the child’s “style.css”? And if that doesn’t work, then I should copy the theme.css file to the child folder, and tweak the bit of code, but keep the rest of the file intact?
Forum: Fixing WordPress
In reply to: setting up a child themeHi questas. Do you mean like this? It didn’t work for me
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri(https://w-ard.com/wp-content/themes/gt3-wp-oyster/) . '/style.css' ); ?>
I did not copy the style sheet, I have set that up fine using the header method described in the wordpress link I had in the original post. My question is about how to make modifications moving forward. There are the 5 subfolders I mentioned and 40+ .php and .css files. Do I make a copy of the particular file I want to edit, make the change, and delete the rest of the code in that file so that it does not override things I don’t modify? Or do I add the modified code into the child style.css instead?