Forum Replies Created

Viewing 15 replies - 481 through 495 (of 681 total)
  • No! And it’s not function.php, it’s functions.php. This might be the reason why your functions.php wasn’t read. Because it didn’t exist. You created function.php instead.

    The important things about functions.php of you child theme are that:
    1. It has to have <?php on first line and ?> on last. So, an empty one would look like this:

    <?php
    
    ?>

    2. It shouldn’t have any function contained in parent file, with the exception of pluggable functions, which is of no interest to us here.

    Just put the code inside those lines and save it as functions.php. And upload. And you’re done.

    Polly, you have a layout problem, generating an unwanted horizontal scrollbar. I haven’t been able to figure out what’s causing it, but I know how to fix it. Add this to your custom CSS:

    body {overflow: hidden;}

    You got it right.

    Yes, I’m sure.
    Actually, custom-page.php is obsolete (wasn’t updated to the new file system, introduced in 3.0.12) and will prolly be updated on next patch. Right now it doesn’t display sidebars. Good thing no one actually uses it, lol.

    There is absolutely no way for this function to know where you want your link to go. You have to put your link (as HTML) inside the $credits variable. As in:

    $credits = 'Custom Design by <a href="https://twitter.com/PollyPirate" alt="follow meh!">Polly Philipson</a>';

    Instead of duplicating page.php you duplicate index.php in Customizr’s case. The loop is on lines 35 to 37. Replace those with

    <?php woocommerce_content(); ?>

    Save, upload and you’re done.

    If you want to further style WooCommerce, use the grid system to keep it all responsive. It’s really simple, fun and it looks great, too.

    AFAIK, no one posted page templates for WooCommerce & Customizr. However, I have recently contracted development of an online shop, for which I intend to use WooCommerce and Customizr.
    After I’m done building them, I’ll make the templates available for download, probably through the snippets system on Customizr’s website or through the use of a WP plugin, haven’t made my mind up yet.

    If you can’t wait for a few weeks and since Customizr is built on Tweeter Bootstrap, here are a few good layout examples using the built-in TBs library.
    Please note that Customizr uses TBs 2.3.2 library, not TBs 3. So if you decide to look the web for more TBs examples, make sure they’re compatible.

    Instead of the CSS patch you applyed, you need to apply this one:
    http://www.themesandco.com/snippet/center-logo/

    1. Log to your site through ftp and add a _ before your child theme’s name.
    2. Log into WordPress.
    3. Activate Customizr.
    4. Change your child theme’s folder name back (remove the _).
    5. Add a _ in front of all files of the child theme, except style.css and functions.php.
    6. Activate child theme.
    7. One by one, remove the _ in front of your child theme files and see which one is causing the error. There may be more of them, not just one.
    8. Once you found one, get the new version of it from Customizr, re-apply your mods and save it instead of the child theme version. Than back to step 7, until you finish all files.

    Have you done all mods to your child theme through WP editor and you do not have a copy of your child theme in your drive?

    In this case your only bet is to get a backup of your files (not the database) from your hosting company.

    Learn from this not to modify your theme online, but rather offline, on your computer and upload files as you modify them. At the end of each day archive themes folder (and plugins if you also worked there) and save it in some _bkp folder with the date as the name).

    If:

    • you have put the function inside functions.php of your child theme,
    • your child theme’s functions.php is not a modified copy of it’s parent counterpart (read on how to add child themes if unsure),
    • your child theme is the active theme
    • you have put the html contents of div.container.marketing in between the backticks from line 3 in that php code above (in $extra_fp_html variable)
    • and your html doesn’t contain any unescaped backtick…

    …it should work.

    At this point it’s quite clear to me you have set out to modify this theme way beyond your coding skills. I have given you all the elements to achieve your goal, yet you missed some detail. I’d try again if I were you.

    Trust me, the function works. Just tested it here, to make sure: http://customizr.websiter.ro.

    There is no foreach() on line 139 of /wp-content/themes/customizr/inc/class-fire-utils.php.

    Please download and install last version of Customizr. Download button on top of right sidebar. I’d have linked the .zip file, but I wanted this answer to remain valid after future updates of the theme.

    On line 83 of your child theme’s style.css you need to lower that 313px down a bit. Replace that line with:

    padding-left: 40px;

    If you want to right align the links in that widget, add this to your CSS:

    #text-4 .textwidget {text-align: right;}

    The reason it shows up is because your translation file doesn’t contain anything as a translation of “Comments off” and WordPress thinks it’s not translated.
    Instead, put

    &nbsp;

    as a translation for it and it will not show up. I think it’s in the Customizr language file, under /wp-content/themes/customizr/lang/{your_language_code}_{your_country_code}.po. If it’s not there it’s in /wp-content/languages/{your_language_code}_{your_country_code}.po. You need Poedit to search in and modify those files and the final results are saved in their .mo counterparts, when you save the .po.

    Alternatively, you could install RTFR and add this search / replace:
    left box:

    <span class=”meta-sep”>|</span>
    <span class=”comments-link”><span>Comments Off</span></span>

    right box:

     

    It is important that you take the contents of the left box from your website’s view source. If you take it from here it has been re-formatted by the WordPress forum escaping function and it will not match the string in your page. Or, if you know how to use regex, make your replacement a regex to make sure you get a match.

    Do you have the same font-weight problems when viewing the Customizr Theme Homepage or this test website?

    In not, let’s try to pinpoint where the line of code that produces it is. First, remove all code from custom CSS (save it somewhere, so you don’t lose it). If that fixes it, I’ll have to ask you to post that code here between two lines containing only one backtick each (`), so it shows up in a code window.

    If the error is not in the custom CSS, try re-installing Customizr fresh. If your problem is still not solved, you need to start looking inside your child theme.

Viewing 15 replies - 481 through 495 (of 681 total)