alingham
Forum Replies Created
-
I’ve had exactly the same issue. Which is a croc.
Why would I want my images on both my WP site and on Cloudinary?
I took them off WP to put on Cloudinary because I began running out of space.
There is no point in having them in both. If I’m going to be forced into having them in my WP, then I may as well ditch Cloudinary. Right!?Let users turn OFF the auto sync and then you’ve got yourself a working plugin. Until then, useless and pointless.
Forum: Developing with WordPress
In reply to: Customizer – How to refresh a variable in For LoopI’ve had a look, but no idea what I’m actually looking for.
None of it makes sense or even looks close to anything I need.Forum: Plugins
In reply to: [WooCommerce] Product Shortcode makes Stepped Image list of ProductOh my gosh. I feel so stupid.
A whole BUNCH oftags all around the shortcode. That'd do it! Thanks Lorro!
- This reply was modified 6 years, 10 months ago by alingham.
Forum: Themes and Templates
In reply to: [Verbo] style.css changes overrodeSure can.
I’ve used Chrome to Inspect the element and taken the “overriding” css straight from it and put it in the child theme style.css
It looks like it gets overridden by the code found in verbo/media/css/
The code that made me aware of this was when I tried to get the footer coloured right in a school website. https://www.arakura.school.nz
The code I had added to the child theme style.css is as follows:
footer aside{ background:none; padding: 60px 0px 20px 0px; border-top: 1px solid #e4e4e4; }
The reason behind wanting background:none, is because I’ve attached a background image to the “footer” tag, but this is then blocked out by footer aside.
The background for footer aside is for some reason defined within the index file itself when the theme calls wp_footer(). Not sure why this is (and if you have a fix for this, or know what calls this, I’m all ears – though for now I’m more than happy just putting an !important on my style.css file).But what brought the overriding stylesheets to my attention was when I tried to change the border-top colour. As you can see, I’ve tried to make it #e4e4e4, but when I inspect the element, footer.css has overidden it with the default #f2f2f2.
I have tried creating a media/css/footer.css file inside the child theme, with no avail. It still fetches the styles for footer.css from the parent theme ‘verbo’.
Hopefully all of this makes sense.
Forum: Themes and Templates
In reply to: [Verbo] style.css changes overrodeBUMP
Having the same issue….Forum: Themes and Templates
In reply to: [ColorMag] Slider Moves All Elements and Displays Images WeirdI’ve found out a little work around for my site.
An easier way is to hack the CSS a bit.Use the Theme Customizer
Appearance -> CustomizeClick on Design Options -> Custom CSS
Add in the following code:
.bx-wrapper { height:350px; overflow-y:hidden; } .slide-content { top:210px; }
This should stop the slider adjusting its height for each image it comes across. Its the adaptiveHeight: true; in the javascript that causes it. This CSS should fix that.
Enjoy!
Forum: Themes and Templates
In reply to: [ColorMag] Featured Image ResizingActually. An easier way is to hack the CSS a bit.
Use the Theme Customizer
Appearance -> CustomizeClick on Design Options -> Custom CSS
Add in the following code:
.bx-wrapper { height:350px; overflow-y:hidden; } .slide-content { top:210px; }
Enjoy!
Forum: Themes and Templates
In reply to: [ColorMag] Featured Image ResizingGo to
wp-content/themes/colormag/js/colormag-slider-setting.jsLooking into the code, the only way to change this is to go to the JS and change adaptiveHeight to false.
Maybe there needs to be an option in the TG Widget to allow theme users to change this themselves?jQuery(document).ready(function(){ jQuery('.widget_slider_area_rotate').bxSlider({ mode:'horizontal', speed:1500, auto:true, pause:5000, adaptiveHeight:true, nextText:'', prevText:'', nextSelector:'.slide-next', prevSelector:'.slide-prev', pager:false, tickerHover:true }); });
Forum: Themes and Templates
In reply to: [ColorMag] Featured Image ResizingBump.
Exactly the same issue. I was going to back through ALL my featured images and resize them all to fit!
But it shouldn’t have to be that way.
Anyone got any solutions?Forum: Networking WordPress
In reply to: Separate PHP files show up as a 404See This Page as an example.
Forum: Networking WordPress
In reply to: Separate PHP files show up as a 404Folder named scripts…. any php file (or any file) in that folder just turns up as a 404 missing page….
Forum: Fixing WordPress
In reply to: Page Template with CategoriesGot it people!!! Here is the final code. Feel free to use it s you see fit.
As you can see at https://www.alingham.com/v2/day I am using mootools accordion, which is the reason for some of the formatting. Shouldn’t take much to adjust it for your own site!<?php /* Template Name: Page + Category II */ ?> <?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="accordion"> <?php //Gets the name of the category // Match to Page name $cat_list = get_categories(); //Print Category Array --> print_r($cat_list); foreach($cat_list as $cat) { //gets Category name from Array $catName = $cat->category_nicename . ' '; //Page Title $post_obj = $wp_query->get_queried_object(); $pageName = $post_obj->post_name; //cut whitespace $pN = trim($pageName); $cN = trim($catName); //if category name and pagename is the same, assign id Number -> display later. //or if post is part of two categories (ie 7 and 8 would be 7,8) - added comma before and after $pN if(($cN == $pN)||($cN == $pN . ',')||($cN== ',' . $pN)){ $id = $cat->cat_ID . ' '; $id = trim($id); $page_category_name = $catName; } } ?> <div class="post-top" id="post-<?php the_ID(); ?>"> <h2 class="toggler"><?php the_title(); ?></h2> <div class="element"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?> </div> </div> <?php endwhile; ?> <?php endif; ?> <?php //Display posts from Category of the same name as the page.... $wp_query = null; $wp_query = new WP_Query(); $wp_query->query( 'cat='.$id.'&showposts=3'.'&paged='.$paged ); ?> <?php while ( $wp_query->have_posts() ) : $wp_query->the_post() ?> <div id="post-<?php the_ID() ?>" class="post"> <h2 class="toggler"><?php the_title() ?></h2> <div class="element"> <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?> <div class="entry-meta"> <span class="cat-links"><?php printf(__('Posted in %s', 'sandbox'), get_the_category_list(', ')) ?></span> <?php the_tags(__('<span class="tag-links">Tagged ', 'sandbox'), ", ", "</span>\n\t\t\t\t\t<span class=\"meta-sep\">|</span>\n") ?> <span class="comments-link"><?php comments_popup_link(__('Comments (0)', 'sandbox'), __('Comments (1)', 'sandbox'), __('Comments (%)', 'sandbox')) ?></span> </div> </div><!-- .element --> </div><!-- .post --> <?php endwhile ?> </div> <!-- End of Accordion --> <ul id="new-old-links"> <li><?php next_posts_link('« Older Entries') ?></li> <li><?php previous_posts_link('Newer Entries »') ?></li> </ul> <?php $wp_query = null; $wp_query = $temp; ?> </div><!-- End of class content--> <?php //get_sidebar(); ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Page Template with CategoriesThanks for your thoughts. I’ll have a look at custom wordpress loops. If anyone wants to have a go for me or already has a solution I wouldn’t say no!
Thanks for the praises on the template. I’ve found it really useful. I’ve used it in 4 sites I manage. I think it’s essential, bordering on a requirement. I don’t know why wordpress hasn’t made it part of the default options!
For those wondering, if you want more than 3 posts displayed, change numberposts=3 to however many you want…Forum: Fixing WordPress
In reply to: Page Template with CategoriesForgot to mention – you can see this page template in action here:
alingham.com/v2/day
You can see the first ‘post’ “Day” is actually the Page content… and the rest of the posts below are actual posts in the category called “Day”