acub
Forum Replies Created
-
Here’s a clean and safe way of changing fonts throughout the site:
1. Upload your font files at Squirell Webfont Generator
2. Upload the result in your [child-theme-folder]/fonts
3. Add@import url("fonts/stylesheet.css");to your style.css, at the start, after the theme definition comment.
Depending on how many fonts you import, the path above might differ: “fonts/regular/stylesheet.css”, “fonts/condensed/stylesheet.css”
At this point, you have successfully installed your font and is ready to be applied to any elements. In my case, the font I embedded was Expressway. So all I needed to do was apply it to all the elements I wanted:html, body, div, span, applet, object, iframe, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { font-family: 'Expressway'; } h1, h2, h3, h4, h5, h6, div.ws-title div{ font-family: 'Expressway Condensed'; }There are other ways of creating and embedding fonts in a website and I’m not endorsing this one. It’s just something I tried and worked.
1. What version have you upgraded from?
2. Are those normal posts or a custom-pots-type?
3. Also, make a list of all the files you have copied from Customizr and mod’d in your child theme.Forum: Themes and Templates
In reply to: [Customizr] Custom Header Logo After UpdateNot that I know of. The first six characters of your reply did most of the job, though.
Please mark as resolved if that’s the case.
Forum: Plugins
In reply to: [Real-Time Find and Replace] Issue with html charsI found the solution for this.
In the end, it turns out WP has a function that prevents textarea from replacing html entities into their result: http://codex.wordpress.org/Function_Reference/esc_textareaTherefore, both $find and $replace vars need to be wrapped in esc_textarea() on line 115 of $real-time-find-and-replace.php, resulting in:
echo "<p id='row$i'><label for='farfind$i'>Find: </label><textarea rows='3' cols='30' name='farfind[$i]' id='farfind$i'>".esc_textarea( $find )."</textarea> <label for='farregex$i'>RegEx?: </label><input type='checkbox' name='farregex[$i]' id='farregex$i' $regex /> <label for='farreplace$i'>Replace: </label><textarea rows='3' cols='30' name='farreplace[$i]' id='farreplace$i'>".esc_textarea( $replace )."</textarea>   <a href='#' onClick='removeFormField(\"#row$i\"); return false;'>Remove</a></p>\n";Please include this in the next release, if it’s not too much trouble.
Thank you!
Forum: Themes and Templates
In reply to: [Customizr] 500 Internal Server error after updatingYou need to disable all the files from the child theme except functions.php and style.css. By disabling I mean renaming (put “old_” before their names). Than re-enable them one by one and see which ones are causing erros. Compare them to their new versions and replicate your changes in parent version, saving the moded files in child theme folder.
In 3.0.12 a lot of structure changes were made, to both file templates and functions, because of the dev tools. Now almost all functions are filterable. You can alter their output without needing to know in what file they are.
Everything happens in your child theme’s functions.php and is 100% upgrade-safe.Forum: Themes and Templates
In reply to: [Customizr] No scrolling?It’s from genealogy’s CSS. Add this in your custom CSS panel from Customiz’it! admin page (the blue button):
html.boxshadow {position: relative; overflow: scroll;}Unfortunately, being a class added to the html element itself (very bad programing, btw) there are no parents to alow more specific CSS selectors.
Anyway, it should work. You may now enjoy your content at full width, lol.
If my code doesn’t work, open /wordpress/genealogy/css/genstyle.css and modify lines 1146 and 1148 to match the code I posted above.
I hope you haven’t payed anything for that genealogy app/plugin… or whatever it is. They should have payed you for using such sloppy code.
Forum: Themes and Templates
In reply to: [Customizr] How to make image slider not stopping on mouse overInstall and activate RTFR if you don’t have it by now.
Replace (left box)
.carousel({interval
with (right box)
.carousel({pause:false,interval
Remember to mark as resolved after you verify the solution.
Forum: Themes and Templates
In reply to: [Customizr] Custom Header Logo After UpdateThat code is a complete mess. Not only you’re declaring most of it twice, but some lines have errors, rendering portions of it unusable by browsers. They have this nasty habit of halting on errors…
Here’s the “cleaned up” version of your CSS:
.navbar .nav > li > a:first-letter { font-size: 22px; } .navbar .nav > li > a { font-size: 20px; padding: -5px -5px; } .navbar-wrapper .navbar {width:100%; float:right;} .navbar .nav { display: block; float:right; margin: -40px -15px 0 0; position: relative; padding: -15px -15px -15px 0;} .wpbb-header-spacer { height: 10px; }I removed duplicates and also the rules for .navbar-wrapper .brand which doesn’t exist anymore: .brand div (the logo) has been removed fom the .navbar-wrapper div (the menu wrapper).
For centering your logo, add this to the end of your child theme’s functions.php, before the ?> (which should always be alone on the last line of file), and not inside any existing accolades:
add_filter('tc_logo_title_display', 'your_logo_title_display'); function your_logo_title_display($output) { return preg_replace('|brand span3|', 'brand span12', $output, -1); }Note: functions.php of your child theme should not be a copy of the parent’s functions.php. It should only contain your own php functions. If you haven’t added any php to it yet, it should just be an empty php file.
<?php ?>If that’s the case, add the php code I posted before on line 2, save, upload and you’re done.
Forum: Themes and Templates
In reply to: [Customizr] How to hide the icon beside the page/post title?You would need to unhide it for the all the possible queries that might return a list of posts and/or pages. And that includes all type of archives (yearly, monthly, daily, hourly), authors list of posts or pages, search result, categories, taxonomies, custom post type lists, tag archives and I’m sure I’m missing some.
You would need to add a selector for each of those body[class=””] selector s and, after you finish the list, add all of them {display: inline-block;}
Something like….archive .post .entry-title, .archive .page .entry-title, .search .post .entry-title, .search .page .entry-title, .category .post .entry-title, .category .page .entry-title, .taxonomy .post .entry-title, .taxonomy .page .entry-title, .author .post .entry-title, .author .page .entry-title /* you might continue this selectors list for quite a bit and than... */ {display: inline-block;}Well, I guess I don’t have to tell you that in an environment as flexible as WP that’s more than counter-productive. Much more.
Instead, the right approach is to find a more particular selector for the instances where you want to hide the titles. I understand you want to hide the titles only on single pages and on single posts. If that is correct, you need body.single-post and body.page selectors before your .entry-title. More than that, a good practice to add the id of a structural element of the page, usually a content container/wrapper in the selector. This gives the rule precedence over class-based selectors, no matter how precise they would be. #main-wrapper is perfect for that job. So the final solution would look like this:body.single-post #main-wrapper h1.entry-title, body.page #main-wrapper h1.entry-title {display: none;}The solution above will even allow you to display custom lists of posts or pages (search results, categories, etc) inside single pages or single posts, through the use of plugins or functions) as long as their output doesn’t make the .entry-title a h1 (usually the lists are either a’s or li’s…)
Hope I haven’t been too technical.
Forum: Themes and Templates
In reply to: [Customizr] Changing space in menu items and content box sizeInstall and activate RTFR.
Add these replacements to it (the model is:
|string to be replaced| => |replacement string| – do not add the vertical lines in the boxes, I just used them as delimiters for the strings;
string to be replaced goes in the left box,
replacement string goes in the right box,
and each line is a separate replacement):|span3 left tc-sidebar| => |span2 left tc-sidebar| |span3 right tc-sidebar| => |span2 right tc-sidebar| |<div class="span6 article-container">| => |<div class="span8 article-container">| |<div class="span9 article-container">| => |<div class="span10 article-container">|You’re done.
@nikeo: would be nice to give users the ability to customize the width of each sidebar from options, each ranging from span2 to span4 and adjusting the $class_tab array in class-fire_utils accordingly.
Forum: Themes and Templates
In reply to: [Customizr] Change text in Home Featured Page OptionsAdd this code in your child theme’s functions.php, one line above the ending ?>
add_filter('tc_fp_block_diplay', 'maverick_fp_block_display'); function maverick_fp_block_display($output) { echo preg_replace( array( '/'.preg_quote('<h2>Home</h2>','/').'/', '/'.preg_quote('<h2>Services</h2>','/').'/', '/'.preg_quote('<h2>About Sandy</h2>','/').'/'), array( '<h2>You have always been a Maverick</h2>', '<h2>Why Mavericks Have an Edge</h2>', '<h2>How I help you Go Maverick</h2>'), $output, -1); }It will replace your current names with the ones you asked. However, if you ever change any of the three page names, they won’t get matched anymore so they won’t get replaced. You’ll need to come to the function and replace the old name with the new one, without touching anything else.
You can put your description text to better use now.
Cheers!
Forum: Themes and Templates
In reply to: [Customizr] how does the crop work? (using 3.0.10)As of now, Customizr doesn’t use WP’s cropped images, it just displays them centered and hides whatever doesn’t fit in the parent div.
Playing nice with WP’s cropped images might be a worthy task for the to-do list but, in the end, it’s the theme author’s decision.
Until Customizr supports WP’s crops for featured images you’ll just have to edit your image in a photo editor, crop it in such a way that it displays as you want on the front page and upload it again.
Just realized that right now this solution doesn’t support 3rd and 4th level sub-menus. I need to adjust both the preg_replace and the CSS to apply the mods to those levels, too.
I’ll get back here with the updated code snippets after a bit of testing, to make sure everything’s proper.
Thank you nikeo.
I’ve been trying to test it as much as I could on my installation of the theme. And actually there is one small improvement that I want to add to it: in order for the drop-down to stay open when hovering the parent link (not only on caret hover) for desktop displays, in the CSS of my initial post one should replace :@media (min-width: 980px) { ul.nav li.dropdown a.a-caret:hover + ul.dropdown-menu, ul.nav li.dropdown ul.dropdown-menu:hover { display: block; } }with
@media (min-width: 980px) { ul.nav li.dropdown:hover a.a-caret + ul.dropdown-menu, ul.nav li.dropdown a.a-caret:hover + ul.dropdown-menu, ul.nav li.dropdown ul.dropdown-menu:hover { display: block; } }(I’m adding the ul.nav li.dropdown:hover a.a-caret + ul.dropdown-menu selector to the rule.)
For anyone who wants to see how the menu looks and feels, I have it installed on ccbra.ro and it included the small addition I mentioned now.
Please report any glithces or problems with it here and we’ll try to solve them.
Forum: Themes and Templates
In reply to: [Customizr] Parent Menu Links Not WorkingWorking solution for your problem here.