acub
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] How to remove the Customiz'it and Customizr buttonsCopy customizr/inc/admin/class-admin-customize.php to [your-child-theme-folder]/inc/admin/class-admin-customize.php and change ‘edit_theme_options’ to ‘update_core’ on line 74 (in 3.0.9 – might be different in later versions).
I’m assuming you haven’t given your editors the right to update WP.
Alternatively, you could use the code provided above by rdellconsulting. All you have to do is input it in the Custom CSS panel of Customiz’it!
However, that solution has two minor disadvantages:
1. The button is still there. A technical savvy editor who would look at page elements with a web-dev tool would be able to find and display it.
2. It will hide the buttons for all roles, including admins.Forum: Themes and Templates
In reply to: [Customizr] center and enlarge logo in Customizr themeInstall Real Time Find and Replace and add this replacement:
Replace: <div class=”brand span3″> with <div class=”brand span12″>
Alternatively, create a child-theme, copy /parts/class-main-header.php from customizr to your child theme’s folder (keeping structure) and change span3 to span12 on line 150 (in 3.0.9 – might differ in later versions).
Or you could make the change directly in customizr/parts/class-main-header.php, but you’ll lose it upon next theme update.
Forum: Themes and Templates
In reply to: [Customizr] How to remove the Customiz'it and Customizr buttonsThe display of those buttons is hooked to the “edit_theme_options” capability (in inc/admin/class-admin-customize.php).
So the buttons will only show up to admins and super-admins, who can get to theme options pages anyway, so the buttons are useful, while they won’t show up for levels below admin, unless you’ve given them the “edit_theme_options” capability, in which case the buttons are useful.
Forum: Themes and Templates
In reply to: [Customizr] How may display a custom list of posts on a page?That’s probably because the file structure has changed.
What you need to do is take the new index.php from parent and make the template again. The principle is the same. I haven’t tried 3.0.10 yet. If you get stuck I’ll take a peek to get you going.
There is a solution that (i think) would look decent on pages with background image.
1. Change icon clipping from circle to square with
.round-div { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0; }2. Set the .round-div border-color to something semi-transparent using rgba(). Example (white 50%):
.round-div {border-color: rgba(255, 255, 255, .5);}3. Change the proportions of featured pages icons to squares (you don’t really have to do this, but I think this solution would look better with square images): 250×250 or 270×270. You might find in theme FAQ a topic on changing icon’s sizes and you will also have to tweak a bit with .thumb-wrapper dimensions on different widths to make it look right.
Alternatively, if you don’t feel like doing that, you could hide the non-square icons imperfections (visible on hover) by altering the scale factor of .round-div on hover:
.widget-front.hover .round-div, article.hover .round-div { -webkit-transform: scale(1.65); -moz-transform: scale(1.65); -ms-transform: scale(1.65); -o-transform: scale(1.65); transform: scale(1.65); }It’s already localized. You just have to translate it in your desired language, using Poedit.
Forum: Themes and Templates
In reply to: [Customizr] Menu not working properly@baars.jan: If you use ImTheirWebGuy’s solution from the topic posted above by rdellconsulting you’ll have parent links on click for wide screens and submenus on click for narrow screens.
However, you do lose the parent links on narrow screens. I’ll try to develop a solution for this using arrow icon links instead of :after’s to open the submenu and keeping the parent links, but that’s not likely to happen in the next two weeks, I’m quite work overloaded at the moment.
Forum: Themes and Templates
In reply to: [Customizr] Make tranisition in images fade instead of slide?Yes, that’s the code you posted initially. At that time it didn’t work if posted in the custom CSS panel. That’s why I intervened in the first place. What I really don’t understand is why you chose to post it again, with the same mistakes, after I pinpointed them.
You have 3 lines of unnecessary code and 2 syntax warnings in that code. Read my previous post for details.
Besides, the min 7000ms comment is incorrect. The effect is working fine at 5000ms, with a transition of 1200ms, at least with the correct syntax. Actually, the syntax warnings might be the reason why you experience problems under 7000ms.
Forum: Themes and Templates
In reply to: [Customizr] Make tranisition in images fade instead of slide?On further testing and using this code, I have noticed that the information I have provided above is not 100% correct. The “left: 0;” is necessary for the fading effect to work, and also, the syntax of the transition property is not right, according to W3C. Correct code for the transition shorthand is: property duration timing-function delay. This might matter in some versions of some browsers. Also, apart from Safari, all other browsers are offering support for transition property, so the -moz, -ms and -o are not needed.
The correct code, working on all devices in all browsers (afaik) is:
.carousel-inner > .item { -webkit-transition: opacity 2s ease-in-out; transition: opacity 2s ease-in-out; } .carousel-inner > .next.left, .carousel-inner > .prev.right { opacity: 1; z-index: 1; left: 0; } .carousel-inner > .active.left { opacity: 0; z-index: 2; left: 0; } .carousel-inner > .active.right { opacity: 0; z-index: 2; left: 0; }@Killasona: please try this new code, it might solve your problem, in which case it was a CSS syntax error, and not a js interference from some plugin. Change the duration and transition-function to your liking (for example, i’m using 1.2s duration and ease effect).
Forum: Plugins
In reply to: [Real-Time Find and Replace] Issue with html charsI have made myself a temporary solution. In your plugin file, I have added this code to far_ob_call function, after the is_array check:
if (function_exists('far_get_extra')) { $far_extra_replaces = far_get_extra(); if (is_array($far_extra_replaces)) foreach ($far_extra_replaces as $extra_find => $extra_replace) { $farsettings['farfind'][] = $extra_find; $farsettings['farreplace'][] = $extra_replace; } }And in functions.php I declared my far_get_extra function which returns the array of replacements without the worry that html chars will get converted into their meanings by WP. Not sure if the $find => $replace type of array for extra replaces will work in all cases (maybe some chars aren’t allowed in keys), but it does in mine.
The squares that you see are actually the icon’s borders. If you make them transparent, the zoom-in/out effect disappears. Instead, you have to make the border the exact color of your page background.
You need to add this code in the Custom CSS panel:
.round-div {border-color: white;}but replace “white” with whatever color code your page has as background.
If you don’t care about the circles effect replace “white” with “transparent”.Forum: Themes and Templates
In reply to: [Customizr] Way to dynamically change header layout?For social icons to float right you need to replace the line
margin: 10px -300px 10px 0px;in rdell’s code with
margin: 10px -30px 10px 0px;and add:
.social-block a { float: right; }However, it will reverse their order.
You might also want to add
.round-div {border-color: white;}to your custom CSS so the featured pages icons below the slider don’t show up in light grey squares.
Forum: Themes and Templates
In reply to: [Customizr] How may display a custom list of posts on a page?You have to get the paged parameter from the initial query and pass it to the new query. Between
global $wp_query;and
$temp_query = $wp_queryyou have to insert:
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; }and, of course, you need to put $paged in the query array:
$args = array ( 'numberposts' => 10, 'paged' => $paged);Haven’t tested it, but it should do the trick.
Forum: Themes and Templates
In reply to: [Customizr] How may display a custom list of posts on a page?It’s a new WP_Query. Parameters here. You could pass a query string or an args array.
Forum: Themes and Templates
In reply to: [Customizr] How to add jpg watermarks in all pagesAfaik, resizable backgrounds are not possible through CSS. A workaround would be to place img tags behind the content and resize them relative to the page width, using javascript, but that’s far beyond the scope of this forum.
If you change the image with an editor it won’t cover 100% of other screens. In your case I’d say a width of about 800px would look decent on all resolutions, cropped on small screens and covering content width on larger ones.
As a sidenote, your backgrounds would look better if you replaced the white part with transparency using a photo editor and saved them as png’s.