Project

General

Profile

Actions

Support #2249

closed

Support re: Provost's WP website

Added by erin glass over 11 years ago. Updated about 8 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Dominic Giglio
Category name:
WordPress (misc)
Target version:
Start date:
2012-11-14
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Hi Dominic,

I'm hoping you might be able to guide me in two issues I'm experiencing while setting up the Provost's webpage. Before launching into those questions, however, I will first explain my haphazard understanding of how you made the slider automatically load. With this in mind, I hope you can better understand my following questions. I apologize in advance for the length!

You wrote:

"There is only a small amount of customization at this point. I created the functions.php file and added to it some code that tells WP that we don't want to use the fadeslide.js file that comes with the parent theme. Instead, WP should deregister that script and instead load our version which resides in /luna-cfr/js/fadeslide/fadeslide.js. That file contains the edited javascript that forces the slider on the homepage to begin it's transitions on the initial page load."

As I understand, the functions.php file (if needed) rests alongside the style.css file within the child theme folder. I also understand that most WP themes have multiple .php files. When altering .php files within a child theme, does one only need a new functions.php file? Or, did you make this file because the fadeslide.js rests within the functions.php file of the parent theme? I confess the Luna theme folder you sent me is a bit disorienting as I'm not quite sure what to make out of all the different folders and files. I have no familiarity with how .js files work, or why, for example, the flexsider file (within the js folder) is a .css file. I ask, because this will help me locate appropriate files to change when addressing the following questions:

1. As you know, I'm trying to make the homepage's header (Chase Robinson, etc) consistent across all pages. I'm guessing this inconsistency is due to code in the page.php file. If so, do I adjust this by creating a page.php file in the child theme folder, or, would I change the page.php file from the functions.php file you already created within the child theme?

2. I'm also trying to remove the featured image from appearing in the actual blog post. So far, I've done that with this code:

.single-blog-post img {
display: none;
}

It works great at removing the image, but will not allow ANY image to show up within the post. (This use of two different images is necessary in order to have a good crop for the featured image). I suspect I need to change the loop-entry.php file. So my question is similar to #1. Do I create a new loop-entry.php file, or do I modify the code in the child theme functions.php file?

Thanks for your enormous patience with these questions. I think once I get a feel for how to modify php (and possibly js) files within a child theme, my troubleshooting skills will be wildly more independent!

Best,

Erin


Files

page.php (1.03 KB) page.php erin glass, 2012-11-26 04:03 PM
single.php (4.54 KB) single.php erin glass, 2012-11-26 04:29 PM
Actions

Also available in: Atom PDF