acub
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Link Logo to an external pagePerhaps you should read all the text on that page, including the one above the snippet, that clearly specifies where that code should go (it’s not your header file, it’s child theme’s functions.php).
Another common mistake is omitting wrapping of the first argument (your current homepage) in vertical bars (|).
Forum: Themes and Templates
In reply to: [Customizr] Customiz'it CSS: wp-post-image grayscale hoverThat code doesn’t work in all browsers. It has a lot of workarounds. You didn’t copy important parts of it.
Forum: Themes and Templates
In reply to: [Customizr] Responsive – Another level?@chappie: Fixed positioned elements are always visible, chappie, unless you input negative values into top/left/bottom/right to position them outside the window, in which case they would be always outside the browser window. Fixed means relative to browser window and the page scrolls under them. However, the actual position of the button is irrelevant here and could easily be re-positioned through custom CSS.
The talk was about the functionality of the button.
@nicksoph: What you need is achievable through custom CSS. However, I love the minimalist look and I think it wouldn’t look so good with menu elements visible.Forum: Themes and Templates
In reply to: [Customizr] Responsive – Another level?Currently the minimised nav bar can take up a significant area with nothing on it except the 3 bar menu button – ie, even if the screen is wide enough to take the 9 items on chappie’s nav bar, it wont unless the logo will fit on the same horizontal line,
I really don’t think fitting the logo on the minimized navbar would change anything for the better. Most logos would be iconish to the point of not being important enough (they would look like an icon that is supposed to do something when clicked). Besides, the present menu makes very good use of page real estate. It looks good and, when pressed, it creates all the space it needs. The only problem with it is that some people don’t know what it is until they try it. So I’d leave the logo centered and important, above the menu, but i’d write on the menu, left aligned: “Menu:”. That would be good design. Looking good and being clear about the way it functions. While the looks are important, it’s how it functions that makes or breaks good design.
Giving a user the choice is normally done by having icons of phone, tablet, monitor which seems to work but can sometimes be counter productive – it uses real estate and requires that the user understands they have that choice.
How about writing “Full page” or “Full width” on that responsiveness button, having it fixed positioned in the right-bottom corner? I wouldn’t go so far as to differentiate between phones and tablets. It’s display width vs full width (~1000 px).
Forum: Themes and Templates
In reply to: [Customizr] Responsive – Another level?No, I mean a responsiveness button. Press it and responsiveness goes away, all content is shown just like for desktop and you’re back to pan and zoom. The idea is to let the users see the website how they want.
And it’s not that complicated, either.All one needs to do is add “responsive” class to body, prefix all declarations in media queries with .responsive and when the button gets pressed responsive class is stripped from the body element. All media queries won’t apply anymore, since they only apply to children of .responsive. Or maybe name the class something shorter, like “-rv”, or (why not?) “-r”, to lighten up the code, since it’s going to be repeated a lot.
Forum: Themes and Templates
In reply to: [Customizr] Responsive – Another level?If you have a lengthy menu that you don’t want to break in two lines you have two options:
1. use a media query to lower the font size and padding of top-level menu elements for the portion between breaking in two lines and switching to mobile menu.
2. Reorganize your menu so it has fewer top-level elements (maybe register a second menu in the footer for things that are not really needed in top menu, or maybe groups some of the related top-level elements).Or, of course, a combination of both.
However, I do feel Customizr is missing something in terms of responsiveness. There has been a lot of talk on whether responsiveness is a good practice or not, on whether the decision to shrink/exclude elements from the page should be taken by designer, page owner or customer. Presumably, the customer should take it.
If that’s the case, the best practice is to provide a responsiveness toggle button, which Customizr now lacks. My personal belief is that in half year’s time, the responsiveness toggle will be standard practice in responsive design.
Forum: Themes and Templates
In reply to: [Customizr] editing the footer credit and web linkSave this as functions.php with UTF-8 encoding and it will work:
<?php add_filter('tc_credits_display', 'my_custom_credits'); function my_custom_credits(){ $credits = 'Web Site by <a href=" http://mywebsite.com/" >mycompany limited</a>'; $newline_credits = ''; return ' <div class="span4 credits"> <p> · © '.esc_attr( date( 'Y' ) ).' <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> · '.($credits ? $credits : 'Designed by <a href="http://www.themesandco.com/">Themes & Co</a>').' ·'.($newline_credits ? '<br />· '.$newline_credits.' ·' : '').'</p> </div>'; }Forum: Themes and Templates
In reply to: [Customizr] editing the footer credit and web linkPlease put it between backticks, so it doesn’t get parsed by the wordpress forum. If you can’t put it between backticks I can’t help you.
One backtick on the line before the text and one backtick on the line after the text. This is how a backtick looks like: `
It’s on the key to the left of 1 on qwerty keyboards.
You have 30 minutes to edit your post after you posted it. If they pass, please input the text again, in another comment.One mistake you have made is exiting php mode, using ?> at the end of the function. You don’t need to do that. If you have anything after exiting ?>, even spaces or empty lines, it will break your website. You should only enter php mode at the start of line, making sure there is nothing before that (no space, no empty line, no tab, nothing). And you should not exit php mode at all. If this is the only function you have in your functions.php, here’s how your file should look like:
<?php add_filter('tc_credits_display', 'my_custom_credits'); function my_custom_credits(){ $credits = 'Customized by <a href="http://mywebsite.com" title="mywebsite.com">mywebsite.com</a>'; $newline_credits = ''; return ' <div class="span4 credits"> <p> · © '.esc_attr( date( 'Y' ) ).' <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> · '.($credits ? $credits : 'Designed by <a href="http://www.themesandco.com/">Themes & Co</a>').' ·'.($newline_credits ? '<br />· '.$newline_credits.' ·' : '').'</p> </div>'; }There is no need to change anything except the value of $credits, on line 4 (that means everything between the single quotes). Use html in that value, like I did in this example. If there are any single quotes in that html (assuming your title is something like “It’s good to be home”, you need to escape the single quote with a backslash, like this: “It\’s good to be home”. Try it, you’ll see it works.
Forum: Themes and Templates
In reply to: [Customizr] Remove rectangle from call to action buttonSince you modified customizr and were able to create my-style.css I assumed you would replace the declaration on lines 28 to 30 in that file with my code. If you do it from custom CSS panel, you need to put .carousel-inner in front of my code, like this:
.carousel-inner .carousel-caption { background-color: transparent; }And, by the way: having done mods in customizr is wrong. You’ll be unable to upgrade the theme without losing your mods. You should have done them in a child theme.
Forum: Themes and Templates
In reply to: [Customizr] editing the footer credit and web linkCan you please copy-paste the code you’re putting in your child theme’s functions.php (that’s breaking your website) here? In order to display as code, you need to add 2 lines (one before the code and one after the code), each containing a single backtick (`).
Forum: Themes and Templates
In reply to: [Customizr] Remove rectangle from call to action button.carousel-caption { background-color: transparent; }should do it.
@tomaja: there are no conflicts in CSS. It’s all about what rule takes precedence. When possible, do not use !important in your CSS code, especially when giving advice. And, if you don’t find any other way, at least do it properly: (there should be a space before the exclamation mark and the CSS declaration you’re making important should be valid). background-color: none; is not a valid CSS declaration.
Forum: Themes and Templates
In reply to: [Customizr] display-posts not workingApparently you forgot to [install and] activate this plugin.
To keep the lang attribute on home, use this function in your child theme’s functions.php:
add_filter('tc_logo_img_display', 'add_language_to_logo'); add_filter('tc_logo_text_display', 'add_language_to_logo'); function add_language_to_logo($output) { return preg_replace( '|href="'.home_url('/').'"|', 'href="'.(function_exists('qtrans_convertURL') ? qtrans_convertURL(home_url('/')): home_url('/')).'"', $output, -1); }Didn’t have time to test it, but it should work.
About the rest, I don’t have any advice. I never tried to translate strings using CSS :after declaration. For me it works simple: my tagline is[:ro]Romanian tagline[:en]English tagline[:sq]Albanian tagline… and so on.
As for the slider, I have input all my texts (button text, image description and image title) using the above syntax and it worked.Forum: Themes and Templates
In reply to: [Customizr] Photo caption paddingI personally use right-click > Inspect Element in Chrome. But I hear both Firefox and Safari have some neat element inspection tools, too.
Just sail up and down the DOM and find ids or classes to narrow down or widen up your selector, to suit your needs. Remember ids are strong and classes are weak.
An example: this html
<div id="one" class="one"> <div class="two"> <div class="three">some text </div> </div> </div>and this CSS
#one .three { color: red; } .one .two .three { color: blue; }will display “some text” in red color, as the #one .three selector is more powerful than .one .two .three. However, if you add the following rule:
#one .two .three { color: black; }the text will become black. It has 1 id + 2 classes, which takes precedence over 1 id + 1 class.
Much more about CSS selectors here.
Forum: Themes and Templates
In reply to: [Customizr] add images to circlesYep: dontuseie.com.