Sprutt
Forum Replies Created
-
Ok, then I understand, thanks again @safelayout!
Thanks for your quick and detailed reply @safelayout!
So if I understand you correctly other plugins might completely break the functionality of the preloader if I make this change, even if JS is enabled?
Forum: Themes and Templates
In reply to: [Qi] Child theme not overriding stylesThank you!
I have now followed the guide and got it working while still leaving the functions.php in the parent, but it then starts prioritizing the parents CSS again. And any changes I make to the child themes copies of PHP files are not considered, while if I make the same changes directly in the parents files it works as expected, for example modifying the content of the header.
Is this theme not set up to have child themes, or am I missing something perhaps?
Forum: Themes and Templates
In reply to: [Qi] Child theme not overriding stylesHello again,
It just struck me that if I update the parent theme in the future it will get a new functions.php in it, correct? Of course it’s not a huge deal to just remove it, but it got me wondering if this might not be the best practice for using a child theme. Is this how it usually is done with this theme?
Forum: Themes and Templates
In reply to: [Qi] Child theme not overriding stylesI will have now have to eat my hat and admit I made a stupid mistake, which was to leave a functions.php file in the parent theme, incorrectly assuming the one i created in the child theme would append it. After moving that one to the child theme and adding the child theme enqueues to the end of it instead it works as expected.
Ok, thanks for the info!
Keep up the great work!
Forum: Plugins
In reply to: [Business Hours Plugin] I want to translate it to swedishHey guys!
Did you ever translate the plugin to swedish? Otherwise I can do it, so I’ll email you aswell Daniel.
Cheers!
Hi guys,
Sorry if I might be intruding on the subject, but I figure my question is closely related.
I’m trying to check the ID of an album being loaded, from within the compact.php template. Can you possibly point me in the right direction on how to achieve that?
I’ve googled forever and tried everything I can think of to no avail..
Thanks in advance, best/Dag
Forum: Plugins
In reply to: [NextGen NivoSlider] Add gallery description underneith sliderThat’s great, thanks!
After further googling I’ve found that using the following code, I can get to the albums data.
global $nggdb; $album = $nggdb->find_album(1); echo $album->name;
So the only thing left to figure out is how to dynamically check what ID the album that is loaded has, instead of having to specify an exact number. Does anyone know?
cheers/Dag
Forum: Plugins
In reply to: [NextGen NivoSlider] Add gallery description underneith sliderI figured out how to do it. If anyone might need this functionality, open up ngg-nivoslider-widget.php and add the following code at the end of the function named widget before the final echo call, and you’ll get the gallery title and description displayed below your slider.
$galleryTitle = trim( $gallery->title ); $galleryDescription = trim( $gallery->galdesc ); $output .= '<h1>' . $galleryTitle . '</h1>'; $output .= '<div class="proj-page-descr">' . $galleryDescription . '</div>';
Forum: Plugins
In reply to: [WP Supersized] In responsive design background squishes!Hi,
I just had the same issue when using WP Supersized with the Responsive theme.
The problem occured because the theme was setting a max-width:100% to ALL images. Since Supersized is outside of the container div I just simply put that identifier before the img tag, as such:
#container img { max-width: 100%; }
Which makes the max-width apply to all images in the container, but leaves the Supersized images alone.
Forum: Plugins
In reply to: [Simple Fields] Only first letter is displayed from repeatable fieldsTackar!
That resolves the problem, thanks alot!
May I as a PHP newbie ask what the difference between the two is?
Anyone?!
Sorry for bumping but I really need to get this fixed..!
Many, many thanks Shauno!
That works great, I just had to switch the ‘ID’ for ‘gid’ and it was golden.
Again, thanks for a great plugin and support, have a nice weekend!