acub
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] The update ruined my website.Nikeo’s code has nothing to do with the database. You either have altered config.php or you’ve placed nikeo’s code outside php markup. Please quote the contents of your functions.php of your child theme and we’ll tell you what’s wrong.
Forum: Themes and Templates
In reply to: [Customizr] 3 featured pics exact name tag to create a shadowIf you clip an element with box-shadow you will clip the shadow too. The unclipped portion of it will not drop a shadow from the remaining visible part. The structure of the featured images is:
div.thumb-wrapper a.round-div img
but img is clipped by .round-div’s border (and the zooming effct is a transition on border-radius change of .round-div).
Forum: Themes and Templates
In reply to: [Customizr] Menu dropdown on hover and all parents linkYou need to copy class-header-nav_walker.php in your child theme (replicating the same folder structure! – if you copy it in your functions.php you’ll get the same error again!) and modify (practically replace) the function start_el() with the code above, not add it. The error you posted is php’s way of saying: “Can’t have same function declared more than once, mate. Give it another name or delete one version.”
You already have the same function declared earlier, probably in the same file. Or in functions.php of your child theme, if that’s where you pasted the code.
In order to shed a little light on WP’s logic regarding child themes: whenever it needs a file from the theme, WP first searches in the child theme. If the file’s not there, it gets fed from parent. So, whenever you want to modify anything from the parent, copy the file to the same folder in your child theme and hack it away. This rule doesn’t apply to functions.php and style.css though.
Also, beware that when the parent gets updated, sometimes the files you copied to your child theme have been modified and you can’t benefit from the mods unless you copy again the original from the parent and make the mods once more (saving in your child theme).
Hmm… Nope. The border-radius doesn’t work consistently during different transitions of the page (including the slider) and the corners show up during those effects. Sorry for not properly testing beforehand.
But the
.thumb-wrapper {height: 270px;}and upload of 270px x 270px images to featured pages is a good idea for anyone wanting their icons 1:1.
I revert to my previous status: “I haven’t found a solution yet.”
If I could, I would have just deleted my previous post. 🙂
Actually, it can be done (forget the code above):
.round-div {border-color: rgba(255, 255, 255, .5);} .thumb-wrapper { height: 270px; border-radius: 300px;}It was much easier than I expected. Don’t forget to upload 270 x 270px images for all the three featured pages or you’ll see the circles cut at the lower end.
If he removes that line, than he’ll have circles inside squares. And from what I’ve tested, If border clipping gets applied to the parent (.thumb-wrapper) it only works when .round-div is not in transition. Practically it looks good when static but corners show up when circles shrink/enlarge.
I haven’t found a solution for it yet.
Forum: Plugins
In reply to: [User Meta Manager] Shortcodes for displaying built-in metaYou don’t need a plugin for that. I made this function. Of course, I could wrap it up and make a simple plugin out of it, but I’ve never been a fan of the plugin support hassle.
Add this to functions.php in your theme’s folder:add_shortcode('gutt-u', 'gutt_get_user_attribute'); function gutt_get_user_attribute($atts = array()) { global $current_user; get_currentuserinfo(); extract( shortcode_atts( array( 'id' => $current_user->ID, 'login' => '', 'email' => '', 'slug' => '', 'field' => 'display_name' ), $atts) ); if ($login || $email || $slug) { if ($login) $gatt_user = get_user_by('login', $login); elseif ($email) $gatt_user = get_user_by('email', $email); else $gatt_user = get_user_by('slug', $slug); } elseif ($id > 0) $gatt_user = get_user_by('id', $id); else return; if (in_array($field, array( 'ID', 'user_login', 'user_nicename', 'user_email', 'user_url', 'user_regitered', 'display_name'))) return $gatt_user->$field; else return $gatt_user->__get($field); }How it works: Use [gutt-u] with id, login, email, slug and field parameters.
id – id of the user you want to retrieve data for; defaults to current user and function doesn’t return anything if id (or login, or email, or slug) is missing and current user is not logged in;
login – login (user_login) of the user you want to retrieve data for; overrides id, email and slug;
email – email of the user you want to retrieve data for; overrides id and slug;
slug – slug (user_nicename) of the user you want to retrieve data for; overrides id;
field – the field you want to retrieve from the user; defaults to display_name. It can be any default WP field or any user meta field as long as it exists, except user_password (I chose not to include it, but can be added to the fields array if needed).
Examples:
[gutt-u] => returns display_name of current user.
[gutt-u field=id] => returns ID of current user.
[gutt-u email=mail@domain.com field=some_user_meta_field] => returns the some_user_meta_field of the user registered with mail@domain.com.
[gutt-u slug=acub field=user_registered] => returns the date of registration for the user with user_nicename = “acub”I doubt sanitization is needed. From the few tests I’ve made, if no user is found or if the field doesn’t exist, it just returns nothing.
@jason, feel free to put my code to good use if you find it useful. Thank you for a robust plugin.
Forum: Themes and Templates
In reply to: [Customizr] How to remove the Customiz'it and Customizr buttonsIf your problem is resolved please mark this topic accordingly.
Forum: Themes and Templates
In reply to: [Customizr] center and enlarge logo in Customizr themeMost likely it’s a typo. Try the replacement without the tag chars:
replace:div class="brand span3"with:
div class="brand span12"Alternatively, eliminate your replacement, look at the exact source of your .brand div (select the logo in firefox and “View selection source”) and try to apply a replacement rule that will only match that element and nothing else in your page. To make sure the replacement works, copy/paste the string to be replaced from the source.
Forum: Themes and Templates
In reply to: [Customizr] Menu dropdown on hover and all parents linkRead his post again.
… so I edited header-nav_walker.php to …
Forum: Themes and Templates
In reply to: [Customizr] How may display a custom list of posts on a page?You either missed the initial
global $wp_query;or the
$wp_query = new WP_query($args);What are your args, btw?
Forum: Themes and Templates
In reply to: [Customizr] How to remove the Customiz'it and Customizr buttonsCSS, compared to other languages has a very logical approach:
selector {rules}The rules apply to all elements matched by the selector. Whenever some CSS rule doesn’t apply to your selected element it’s one of these 4 cases:
a) you have an error or a typo in either the selector (and it’s not matching the wanted elements) or the rules and the browser doesn’t know what you mean (for example you typed widht:200px; instead of width:200px;)
b) you have an open set of rules before your declaration and that’s preventing the browser to read your selector properly, thus not matching the wanted elements;
c) you are inside a media query that’s not matching your display. Example:@media (max-width: 979px) and (min-width: 768px) { selector {rules} selector {rules} selector {rules} /* * All the rules above will only apply to the selected elements on * screens wider than 768px but narrower than 979px. This is how * responsive layouts work. Different rules for different widths. */ } /* <-- this accolade closes the media query */ /* * The code below will apply to the elements matched by the selectors * regardless of screen width (it's outside the media query). */ selector {rules} selector {rules} selector {rules} ...d) somewhere in your CSS there is a contradicting rule that has priority over yours.
Besides, the code is very simple. It says: do not display element with id=”wp-admin-bar-tc-customizr” and element with id=”wp-admin-bar-tc-customizr-help”. And those are the correct ids of the two buttons.
If you provide me with the link to your website I’ll tell you which of the 4 it is and what you need to do to make it work.
Forum: Themes and Templates
In reply to: [Customizr] center and enlarge logo in Customizr themeYou’re welcome. You might want to save your logo with a bit of space to left and right. Now it’s glued to both sides on narrow displays. 30-40px in each side should do it. Narrow down your browser window to see what I’m talking about.
Log in to your website through ftp.
Look in root of the website for a file called .maintenance and delete it.
See if problem is solved.If not, delete the contents of /wp-content/upgrade.
See if problem is solved.If not, rename your wp-content/plugins folder to wp-content/_plugins
If it’s solved, name it back and start renaming plugins (fastest way is to rename half) and see if it works. Than half of half, etc, till you find the one that has problems.If not, rename your current theme folder. If it’s not this, you should probably backup your theme folder, reinstall WP and Customizr and see how you stand when activating your child theme again.
Hope I’m making sense to you.
Forum: Themes and Templates
In reply to: [Customizr] Different menus for different (groups of) pagesYou only need to register new sidebars if you want to place additional sidebars in your page, in other places, while keeping the ones that are already registered.
Changing content of sidebars relative to the page you’re on is called Widget Logic and should be handled by plugins, not by themes. The most popular widget logic plugin for WP is called… Widget Logic.