acub
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Would like to change the site logo urlMost likely it also makes the replacement in your image link, too. Disable the function (add // in front of add_filter), refresh the first page, go to view source and copy/paste the contents of your div.brand for me in here, so I can make a preg_replace that skips ýour image link. The div I want should look something like:
<div class="brand span3"> <h1><a class="site-logo" href="http://websiter.ro/" title="websiter.ro | we site. better."><img src="http://websiter.ro/wp-content/uploads/2013/10/ws_texture_logo2.png" alt="Înapoi la prima pagină" width="250" height="125"></a> </h1> </div>Forum: Themes and Templates
In reply to: [Customizr] changing background colour@mr.solution, I think
body { background-color: #53f6fc; }would have been enough. No need to specify background scroll, repeat or offsets in order to change color. The only thing that needs to be addressed so this looks better is the white text-shadow of the logo. I guess it needs:
.brand h1 { text-shadow: 0px 2px 4px rgba(0,0,0,.21); }added to the CSS above.
Forum: Themes and Templates
In reply to: [Customizr] Downloadable Child theme?If you really want a downloadable child theme, i can create one for you in a matter of minutes. However, the steps are really few and it’s best that you do them, so you overcome your fear of breaking the site.
You only need 2 files: style.css and functions.php in your child theme. And of course, you need to put them in a folder. So…
Step 1: Create the folder. It should be made in /wp-content/themes (just where Customizr is). Let’s name the folder Awesomeness.
Step 2: In your text editor of choice (TextWrangler sounds great) copy paste the code below and save it as style.css, in that folder. Make sure you save it with UTF-8 encoding (not ANSI or anything else):/* Theme Name: Awesomeness Theme URI: http://putyourownurl.here Description: I made this Author: Me, Myself Author URI: http://putyourownurl.here Template: customizr Version: 1.0.0 */Step 3: Open a new text file and write <?php on first line and make sure it also has an empty second line. Save it as functions.php, also with UTF-8 encoding. When you will need to add functions to this file, always do it from second line below, not on first line. Right now your functions.php is considered empty, and it should look like this:
<?phpNeedless to say, you need to upload the folder, with both files, on your server.
Step 4: Activate your new child theme.
And… you’re done.
Step 5. (Optional) If you want to get really fancy, you might want to take a snapshot of your first page, crop it in your picture editor of choice and save it as screenshot.png, in the same folder (most theme screenshots are 300 x 225px, but if yours is larger it will be scaled down when displayed). Now your theme also has a picture, like all the rest of the themes.From this moment on, if you can’t resist the temptation of modifying a Customizr file, at least copy it (maintaining the folder structure) in your child theme. WordPress will only load the parent theme files if it doesn’t find them in your active theme folder. That’s all there is to it.
Forum: Themes and Templates
In reply to: [Customizr] Would like to change the site logo urlAssuming you’re using a child theme and that your intranet main page url is “myintraneturl.com” and your main company’s url is “mycompanyurl.com” you need to add this function in functions.php of your child theme
add_filter('tc_logo_title_display', 'change_site_main_link'); function change_site_main_link($output) { return preg_replace('|myintraneturl.com|', 'mycompanyurl.com', $output); }Change the links above to your desired ones. I advise you use full urls, including the http:// in front.
The simplest way to achieve this is to add a custom link to your menu and replace it with your logo image. Put a slash (/) in URL box and “replace-me-with-logo” in “Link title” box. The menu will create something like this:
<li id="menu-item-519" class="menu-item menu-item-type-custom menu-item-object-custom current-menu-item current_page_item menu-item-519"><a title="Homepage" href="/">replace-me-with-logo</a></li>Now all you need to do is run a preg_replace on the function that generates your menu and replace replace-me-with-logo with your img tag (your logo). The replacement function would look like this and needs to be added in functions.php of your child theme:
add_filter('tc_navbar_display', 'replace_custom_link_with_logo'); function replace_custom_link_with_logo($output) { $html = '<img src="/path-to-your-logo-image" alt="your_company_name" />'; /* Ofcourse, you will need to replace "/path-to-logo-image" with the * actual path to your image file and "your_company_name" with your * company or website name... Make sure there is no unescaped single * quote anywhere inside the $html variable. */ return preg_replace('/replace-me-with-logo/', $html, $output); }Don’t forget to prevent the output of the normal logo:
add_filter('tc_logo_title_display', 'prevent_output_of_logo'); function prevent_output_of_logo($output) { return; }Haven’t tested it, but it should work. If you have any trouble with it, get back here and I’ll make some tests and see what I missed. If it works, please mark it as resolved.
Forum: Plugins
In reply to: [qTranslate] trying to make qtranslate and contact form 7 work togetherI’ve solved it. Just forgot to mark as solved.
Thank you.
Forum: Themes and Templates
In reply to: [Customizr] [Theme: Customizr] Featured page images zooming@smithybboy: you need to start your own thread if you want that question answered.
@graphicimpulse: replace the code I gave above with:.widget-front.hover .round-div { border-color: transparent; }I thought you said you want to remove the effect. In fact you didn’t want it removed, you wanted it permanently ON, regardless of hover.
Forum: Themes and Templates
In reply to: [Customizr] link on blogpageThe post lists do not show the actual content of your posts, but the excerpts. You haven’t set any excerpts and the list creates them on the fly, quoting the start of the content and stripping any html from it.
Go to your posts and set the excerpts manually, as they accept html. They’re below the content somewhere. If they don’t show up, go to Screen Options (top-right) and check them from the list.
Excerpts can also be used with pages (or any custom post types, actually) but you need to add support for them in your child theme’s functions.php:
add_post_type_support( 'page', 'excerpt' );Forum: Themes and Templates
In reply to: [Customizr] [Theme: Customizr] Featured page images zoomingIt’s not a script, it’s just CSS 3. Add this to your custom CSS:
.widget-front.hover .round-div { -webkit-transform: none; -moz-transform: none; -ms-transform: none; -o-transform: none; transform: none; }If you want to remove that effect from post lists too, replace .widget-front.hover with #main-wrapper in the code above.
And don’t lose it.
Forum: Themes and Templates
In reply to: [Customizr] Navigation Menu when collapsedin custom CSS:
@media (min-width: 980px) and (max-width: 1050px) { .navbar .nav > li > a { padding: 5px 15px; } }Apart from that, if you want to get rid of the useless horizontal scroll-bar, you should add this:
html { overflow-x: hidden; }Forum: Themes and Templates
In reply to: [Customizr] Positioning Grey Box Text-Caption of SliderI really don’t understand what you mean by “positioning the gray box and text caption right in the left bottom corner”.
Might sound silly, but can you draw it or show an example? I don’t understand what you’re trying to achieve.
Forum: Themes and Templates
In reply to: [Customizr] No headeradd_filter('tc_navbar_display', 'prevent_output_of_this'); add_filter('tc_logo_title_display', 'prevent_output_of_this'); add_filter('tc_tagline_display', 'prevent_output_of_this'); function prevent_output_of_this($output) { return; }Forum: Themes and Templates
In reply to: [Customizr] No headerIf that’s how you want your website to look, why did you install Customizr in the first place?
The two taglines are needed because depending on width of the screen, the tagline is displayed inside or outside the navbar. Narrow your browser window down and you’ll see what I mean.
You only need one of them in the page’s html, so search engines can find it and use it. Also, having two is no big deal, the search engine stops looking for tagline after it has found it.
So, is your problem solved?
Forum: Themes and Templates
In reply to: [Customizr] No headerOk, I just realized I made a mistake above, forgot to put <?php at start of functions.php.
If you have a child theme, just add the code from step 3 inside your functions.php, at the very end. If your functions.php ends in “?>”, delete that.
If you need more specific instructions, provide a link to your website and also to the image you want displayed as header.