Forum Replies Created

Viewing 15 replies - 406 through 420 (of 681 total)
  • If you don’t want to output the tagline, filter the output of tc_tagline_display and return nothing:

    // prevent output of tc_tagline_display:
    add_filter('tc_tagline_display', 'prevent_tagline_display');
    function prevent_tagline_display($output) {
    return;
    }

    However, I don’t recommend this method for tagline, as search engines display the tagline right after your site name. So use the hiding technique provided by rdell above, but make sure the tagline is set to whatever words you want displayed by your name in search results.

    qTranslate and Customizr work for me (the title and the meta are translated). So I suppose you need to take this issue to the forums of the plugins responsible for replacing your title and meta. I can’t be of much help, never used any of those plugins.

    @laurahartwigdesign, please try to grasp the concept of responsive layout before giving advice on layouts for responsive themes. Just change the width of your browser after applying the solution you suggested above and you’ll see what I mean.
    Here’s a good starting point: TBs scaffolding#gridSystem.

    @dfwmax: yes, it can be done. First, look at the grid system in the link above, to understand how it works. After that, a practical solution for your problem would be installing RTFR plugin and adding these replacements:

    If you want to enlarge the left bar and use left bar layout:
    Replace

    span3 left tc-sidebar

    with

    span4 left tc-sidebar

    and

    span9 article-container

    with

    span8 article-container

    .

    Now let’s assume you use both sidebars and want a narrow left bar and a very wide (5 spans) right bar:
    Replace

    span3 left tc-sidebar

    with

    span2 left tc-sidebar

    and

    span6 article-container

    with

    span6 article-container

    and

    span3 right tc-sidebar

    with

    span5 right tc-sidebar

    . I hope you got the idea.

    However, if it can wait, there’s good news ahead: nikeo plans on implementing a theme option that will allow you to select the width of each of the sidebars in a future version, probably next one.

    Wrap that line in __(), like this:

    <title><?php __(wp_title( '|' , true, 'right' )); ?></title>

    Not sure, but it should work. I’ve only used qTranslate in query mode (?lang=XX) myself.

    I think I know why your jQuery doesn’t work. Had a similar problem here.

    You need to enqueue your script in the footer, to the jquery array, so the wpcf7 scripts are loaded when yours get executed.

    Thread Starter acub

    (@acub)

    I found the answer.
    For anyone wondering why their jQuery doesn’t work, you need to enqueue the script in the footer, to the jquery array, so the wpcf7 scripts are loaded when yours is executed. Example:

    wp_enqueue_script('{your_script_name}','/{your_script_location}{your_file_name}.js', array('jquery') , null , true);

    And the actual jQuery for updating an input value:

    jQuery("#{your_field_id}").val('{your_value}').removeClass('watermark');

    Of course, you need to replace the accolades with your own specific values.

    Why was the link moderated? It’s a subdomain I made specifically to have a testing environment for different solutions and mods to Customizr theme I provide on this forum. I have used it in the past and there was no problem. Also, in this specific case, it shows that the solution provided above works.

    Please tell me what rule have I been breaking.
    Thank you.

    @carissawp: some WP moderator doesn’t want me to show you this thing works. you’re gonna have to take my word for it.

    @carissawp: That’s very… informative, Carissa.

    I can assure you it works, as I never post code I haven’t [link moderated] tested myself.

    But I only code a bit and design a bit. I don’t do fortune cookies nor mind reading.

    Unless you help me help you by providing a link so I can take a look and see why it doesn’t work in your case, I guess you won’t be putting links on slider images very soon… Not using this method, anyway.

    Have a happy day.

    To put a link on the image you need a little regEx magic that captures the link from the button and dynamically wraps it around the corresponding image. Please note that, even if you won’t show it, the button has to have a text (set in slider settings, on picture edit screen). If it doesn’t have a text, it won’t be rendered in the source, and my function won’t find the link so it won’t wrap anything around the image. So put this in your child theme’s functions.php:

    add_filter('tc_slider_display', 'link_my_slider_images');
    function link_my_slider_images($output) {
    return preg_replace('/<img(.*?)>(.*?)<a(.*?)href="(.*?)"/sm', '<a href="$4"><img$1></a>$2<a$3href="$4"', $output, -1);
    }

    Next, in order to hide the caption you need to add this to your child theme’s style.css (or in the Custom CSS panel, in theme options):

    .carousel-caption {display: none;}

    Please note that if you do not hide the caption, the link won’t work inside it, because the image is below. If you need link over picture and the caption you’d have to mod the regex above and make it wrap the link around the whole slide instead of just the image.

    @matt84532 the following solution displays logo, tagline and menu, all centered on top of each other. also, social links are removed from header:
    CSS (goes inside style.css of child theme):

    .brand.span10.offset1 {float: none;}
    .tc-header .outside {display: block;  text-align: center;}
    .navbar-inner .row-fluid .span7.site-description {display: none;}
    .navbar-wrapper .navbar.notresp.row-fluid { float: none; width: 90%; margin: 0 auto; }
    .navbar .navbar-inner {padding: 20px 0 0; }
    .navbar .nav {float: none; width: 100%; text-align: center;}
    .navbar .nav > li {float: none; display: inline-block;}
    .navbar .nav > li .dropdown-menu li {float: left; width: 100%; text-align: left;}
    @media (max-width: 979px) {
    .tc-header .brand {width: auto;}
    .row-fluid .offset1:first-child { margin-left: 0; }
    }

    PHP (goes inside functions.php of your child theme):

    // center the logo by switching TBs classes on brand div:
    add_filter('tc_logo_title_display', 'custom_center_brand');
    function custom_center_brand($output) {
    return preg_replace('/brand span3/', 'brand span10 offset1', $output);
    }
    
    // prevent the output of tc_social_in_header:
    add_filter('tc_social_in_header', 'prevent_social_in_header');
    function prevent_social_in_header($output) {
    return;
    }
    
    // remove span9 from navbar-wrapper:
    add_filter('tc_navbar_display', 'remove_span9_navbar_display');
    function remove_span9_navbar_display($output) {
    return preg_replace('/navbar-wrapper clearfix span9/', 'navbar-wrapper clearfix', $output);
    }

    @rdell: i appreciate your time and effort into unifying the solutions and posting only the good stuff so users don’t get lost. feel free to use any of my bits in your guides. questions are welcome too 🙂

    Please note that this doesn’t behave well on very narrow screens, especially if the text goes out of the slider. Haven’t had the time to look for a fix. I’ll post when I find one, if.

    Teketaka, something in your installation or your mods is preventing your bootstrap.min.js to load. Most probably something that uses a newer library of bootstrap.

    It’s only logical that other things will break or are already broken in your installation, since the theme makes use of that library in more than one place, not just the slider.

    Also, since you are the only user with this problem, you shouldn’t set your hopes too high for it to be fixed. At least one more person should have the same problem before anyone can compare your contexts and see what you have in common.

    Tell us how to duplicate it and we’ll fix it. Until than, it will probably be tagged “most likely user error”.

    Well, I don’t have any other version of IE outside 10, with some s***y developer tool which is supposed to render ie7 and above render modes. And it works fine when I try ie7, ie8 and ie9 modes on that tool.

    Try adding background-color: rgba(0, 0, 0, 0.01); to .round-div aswell and see if they become clickable. I’ve just digged again into this and, although IE8 doesn’t support rgba, it seems to fix the clicking problem. Bug fixing a bug. There’ll be a time when we’ll tell our grandchildren stories about the coolest browser in known history: the infamous IE…

    Another thing that could be causing this is plugin interaction. To bulk check all the plugins, temporary rename your plugins folder to _plugins through ftp, and check slider on first page. Note that you need to quickly restore your plugins folder name after the test, no matter what the test shows. If you go in the plugins page (dashboard) while the plugins folder is renamed, all your plugins will be automatically deactivated.

    Now, if the test was positive (slider showed ok when plugin folder renamed), restore the plugins folder name and go to plugins page in admin. Deactivate all plugins and re-activate them one by one, checking slider after each activation, to find the culprit.

    If you wrap a truck in rubber it won’t shrink, nor will it become elastic.

    You need to learn to work with media queries and apply them to your custom content to make it responsive. Also, keep in mind that Customizr uses the Bootstrap library, and all you need to do is apply the classes to your content. They’re already embedded in the theme.

Viewing 15 replies - 406 through 420 (of 681 total)