electrolund
Forum Replies Created
-
Quick thought. All the examples of
@importthat I’m reading don’t include a space afterurl. Try removing that betweenurland("../oxygen/style.css");Can you tell me what exactly is happening? What does “all mush” mean?
Typically, when I’m working with child themes, I try to go in steps. So the first thing I will do is (like you have done) create the child theme folder, and a stripped out child stylesheet that only imports the parent stylesheet.
Then test that first to see if the styles are truly importing. If you suspect they aren’t, have a look at the generated HTML and see if there’s a stylsheet file referenced there.
After that’s all working, then work with the modified template PHP files.
Hey, eglass. A great place to start is the WP Codex entry on child themes.
So your naming convention is fine (although it’s typical to use something like “-child” after the parent name just to keep things straight, but whatever). But the Template line in your header comment box needs to reference the parent theme name exactly. Refer to step 5 under “Example of a basic Child Theme”
Template: declares the child theme’s parent; i.e., the directory of the theme whose templates the child uses.
Now it should be loading your parent theme and then importing your new stylesheet changes.
eglass, have a look in Oxygen’s template file page.php, line 44. Looks like this:
<?php if ( current_theme_supports( 'get-the-image' ) ) get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false, 'width' => 470, 'height' => 260 ) ); ?>If you are using a child theme to make protected changes to the theme, then just omit this line in your page.php inside “oxygen-child” folder
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] new template conceptI have my templates available for download here:
http://www.electrolund.com/2012/04/blogging-challenge-part-2/
Forum: Plugins
In reply to: [Search Regex] [Plugin: Search Regex] inline replace not workingThe inline replace has never worked for me either. Instead, I’ve had to resort to more clever regex searches so that the plugin only finds the right hits, and then I do the search and replace option.
I too wish the inline editing worked, because it would be a heck of a lot easier than opening each post in the editor to make the changes.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] new template conceptI have my template working nicely now. I’ll write something up about it soon. Here’s an example of it working:
http://www.electrolund.com/2008/11/cammate-tally-light-indicator-prototype/
Sure, Macnanimos. First, are you using this same theme, Oxygen? Are you then using a child theme in order to make these kinds of customizations?
If not, then here’s what you do:
1) Go to your web host’s /wp-content/themes/ folder and create a new folder in there called “oxygen-child”. Oxygen supports child themes, which is a brilliant way to make changes without losing them when your parent theme gets an upgrade released.
2) Copy the index.php file from the parent Oxygen theme folder and paste it into this newly created oxygen-child folder.
3) Now go to line 42 of this copied index.php. Delete the original code at 42, which looked like this:
<?php if ( current_theme_supports( 'get-the-image' ) ) { get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'archive-thumbnail', 'image_class' => 'featured', 'width' => 470, 'height' => 140, 'default_image' => get_template_directory_uri() . '/images/archive-thumbnail-placeholder.gif' ) ); } ?>4) Insert my code in that spot.
More questions?
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] new template conceptOk, RTFM for me. The variable $file_gallery_this_template_counter is a wonderful thing! And the example in the Simple template does exactly what I’m wanting, actually, processing the first image differently than the rest.
I’m very encouraged. So far so good.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] new template conceptOops, my code paste was too long. Here’s the code at pastebin.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] new template conceptI’m making some good progress with this template idea. One hurdle that I’m having a hard time with is how to make the File Gallery plugin allow me to insert the first image of the WordPress attached image with one style tag, and then subsequent images with a different style tag.
For instance, this is the required output HTML for a sample highslide-ready gallery:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Is this possible? So far, my tests have been not quite successful. I’m not sure where the looping happens through the WordPress attachments. I’m assuming that it is happening inside the File Gallery plugin.
Forum: Plugins
In reply to: [File Gallery] [Plugin: File Gallery] debug options and help?Hey that’s cool. I didn’t even know about Debug Bar, so thanks again.
Forum: Plugins
In reply to: [Plugin: File Gallery] Simple template not work..Ah, yes, it was indeed #2 that was my problem. It wasn’t directly obvious to me that the linkclass was a requirement for the Simple template to load.
Thanks!
Hey, LaurynJ, I have an update that I wrote over here.
Good luck!
Forum: Plugins
In reply to: [Plugin: File Gallery] Simple template not work..I have an update on this. I checked my outputted source and saw that the jquery file (gallery.js) was being loaded. I tried disabling plugins, changing themes.
Then I got serious. I put File Gallery on a local install of WordPress, used the stock Twenty Ten theme, zero plugins (except File Galley of course). The latest release of the plugin’s Simple template was not loading the jquery file correctly I guess, because Default theme was still being used.
According to the documentation here, the Simple theme was available starting with version 1.6.4. So I downloaded every version of the plugin since 1.6.4.
I next replaced my Simple template folder with the deprecated versions from the top down to 1.6.4.
Only 1.6.4 shows the Simple template correctly. Most others show the Default template, except for version 1.6.5.4, which shows a partial Simple.
I don’t know if this methodology is really sound or not, since the core of my File Gallery plugin is still at 1.7.4.1. Nevertheless, 1.6.4 Simple works as advertised!
Aesqe, any ideas why that is?