simplethemes
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Smpl Skeleton] Active navigation chage to a different colorYou should just be able to add the .current_page_parent class to @sampression’s original:
#navigation li.current_page_item a, #navigation li.current_page_parent a { color: color-of-your-choice; background: color-of-your-choice; }
Forum: Themes and Templates
In reply to: [Smpl Skeleton] Editor line break issuesI was not able to reproduce this. What version of the theme are you using?
It’s difficult to be for certain, but it could be that another plugin is causing this. By the sound of it, the wpautop filter may be removed.
In Skeleton 2.1.0 when I type the following:
This is a paragraph. This is another paragraph. This is another paragraph with a line break. This is the next line.
I get the expected result.
The URL doesn’t load for me.
The sublevel background is removed intentionally on mobile devices. You can add your own like so:
@media only screen and (min-width: 320px) and (max-width: 480px) { #wrap #navigation ul ul li a, #wrap #navigation ul ul li:hover a { background-color: red; } }
The nav links should only drop down in size/padding on tablet portrait orientation (at least in the current version 2.1.0).
Without seeing it first-hand it’s hard to be for sure, but you could always override with a parent selector like so:
#wrap #navigation ul li a {....}
You could also add an
!important
rule.Are you using the Jigoshop child theme by chance?
https://github.com/simplethemes/skeleton-jigoshop-childthemeEither way, look in your active theme’s functions.php and if you see the
skeleton_thumbnailer()
function.If you don’t (or if you do) then just add/change to this:
function skeleton_thumbnailer($content) { return $content; } add_filter('the_content','skeleton_thumbnailer');
Correction/Follow-up to the above.
In field layout.php:
global $pagenow; if($pagenow == "post-new.php") { $state = 'open'; $display = 'block'; } elseif ($pagenow == "post.php") { $state = 'closed'; $display = 'none'; }
Line #7:
<div class="layout" data-layout="<?php echo $layout['name']; ?>" data-toggle="<?php echo $state;?>">
Line #26:
<table class="widefat acf-input-table <?php if( $layout['display'] == 'row' ): ?>row_layout<?php endif; ?>" style="display:<?php echo $display;?>">
When adding new fields/rows, they become collapsed by default. Typically the user wants to edit right away. To alleviate this, I modified input.js as wel beginning around line #262:
(See lines notated with “+Added”)
// vars var new_id = acf.helpers.uniqid(), new_field_html = this.$el.find('> .clones > .layout[data-layout="' + layout + '"]').html().replace(/(=["]*[\w-\[\]]*?)(acfcloneindex)/g, '$1' + new_id), // +Added data-toggle=open to prevent the need for double-click new_field = $('<div class="layout" data-toggle="open" data-layout="' + layout + '"></div>').append( new_field_html ); // hide no values message this.$el.children('.no_value_message').hide(); // +Added show_new_field function to alter the field we hid in field-layout.php function show_new_field (new_field) { new_field.find('.acf-input-table').css("display", "block").html; return new_field; } // add row if( $before ) { // +Added show_new_field $before.before( show_new_field(new_field) ); } else { // +Added show_new_field this.$values.append( show_new_field(new_field) ); }
+1 here as well.
In the meantime, I’ve edited field-layout.php line #7:
(added data-toggle=”closed”)
<div class="layout" data-layout="<?php echo $layout['name']; ?>" data-toggle="closed">
and further down on line #26:
(added style=”display:none”)
<table class="widefat acf-input-table <?php if( $layout['display'] == 'row' ): ?>row_layout<?php endif; ?>" style="display:none">
Forum: Plugins
In reply to: [Simple Shortcodes] [two_fifths] Columns IssueThanks for letting me know. I have committed a fix to the current version. As soon as I finish the update, I’ll push it to live.
If you’d like to apply this specific update before the release, you can grab from here:
https://plugins.svn.www.ads-software.com/smpl-shortcodes/trunk/assets/css/smpl-shortcodes.css
Forum: Themes and Templates
In reply to: [Smpl Skeleton] Related posts and home page number of word limitThe theme does not use the related posts shortcode. You may want to try a plugin such as this one for this particular functionality:
https://www.ads-software.com/plugins/contextual-related-posts/To display the_excerpt instead of the content, copy loop.php from your parent theme into your child theme and edit line#137 (the_content) to:
<?php the_excerpt(); ?>
To change the number of characters displayed, see here:
https://codex.www.ads-software.com/Function_Reference/the_excerptSpecifically in your child theme functions.php, use:
function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Forum: Themes and Templates
In reply to: [Smpl Skeleton] How to target category descriptions in CSS?Hi, you can use the following:
.category-description p { color:red; }
But you’ll need to update category.php first.
https://github.com/simplethemes/skeleton_wp/blob/master/smpl-skeleton/category.phpThis will be available in the next update, so you shouldn’t worry about losing the changes. You can, if you like, just copy that file to the child theme folder if you want to make further changes to the category view.
Forum: Themes and Templates
In reply to: [Smpl Skeleton] Custom options not showing in CustomizeHi magicke,
My apologies. I probably need to remove that link. That tutorial is referncing the previous version/branch of Skeleton found here:
https://github.com/simplethemes/skeleton_wp/tree/2.x-options-framework
Over the course of submitting and getting Skeleton approved to the wp.org repository, the native WP theme customizer was the recommended way to go.
That said, the customizer.php is currently called in functions.php here:
require_once get_template_directory() . '/customizer.php';
The problem here is this file is called up from the parent theme directory. So anything you modify in customizer.php would be lost on the next update.
What you can do temporarily is go ahead and replace the above line (in the parent theme) to:
load_template( locate_template( 'customizer.php' ) );
which I’ll include in the next update. That way you’ll avoid interruption and you can go ahead and copy customizer.php to your child theme directory.
This is pretty easily solved. Add to your stylesheet (preferably woocommerce.css):
@media only screen and (max-width: 767px) { .woocommerce-checkout #wrap .col-1, .woocommerce-checkout #wrap .col-2 { width: 100%; float: left; } }
First, change the body background to your desired color in the customizer.
Then go to Appearance → Editor and edit style.css.Just add the following:
#wrap { background-color: #fff;}
Forum: Plugins
In reply to: [Simple Shortcodes] validation errorsHi, this should be corrected in the latest version.
Forum: Plugins
In reply to: [Simple Shortcodes] Adding shortcodes issueI’m sorry, but seeing how Firefox is currently at version 29.0.1 I don’t think I’ll be able to do so.