acub
Forum Replies Created
-
Good job putting it all together, ElectritFeet.
Chapeau!
Forum: Themes and Templates
In reply to: [Customizr] Move right sidebar or left sidebar after Page TitleTo move the right sidebar down you need to add this to your custom CSS:
.right.tc-sidebar { margin-top: 110px; }Forum: Themes and Templates
In reply to: [Customizr] Change Order of Options on Home PageIt might have to do with hooking your action too late, after the page has already started rendering. I’d hook it to “after_setup_theme”. Which basically means after all of Customizr’s functions.php has been parsed. Give it a try.
Other than that, I don’t see any problem with the function itself.
Forum: Themes and Templates
In reply to: [Customizr] Move right sidebar or left sidebar after Page TitleIt can be done, but it’s a complex solution, that requires php coding and creating a new template. Once that’s done, all you need to do is select the template in your page settings.
However, this can be achieved much simpler by just removing the sidebar from the “About” page. Do you really need that submenu there?
Forum: Themes and Templates
In reply to: [Customizr] Change Order of Options on Home PageThe functions.php of your child theme should start by entering php mode:
<?phpMake sure there is absolutely nothing (not even empty space or empty lines before that text. If there is, there’s your problem.
Also, a very good practice is to delete this
?>from the end of that file, if you haven’t already.
You’re right, rdell, but Customizr automatically adds bootstrap classes and properties to the menu and one should keep in mind that overriding bootstrap menu is no easy task either. Besides classes it also uses javascript and makes use of specific non-standard properties, like data-toggle and data-target.
From where I see it, hooking the menu generating function and adding the necessary CSS to Customizr (being copy/paste) looks less daunting than turning bootstrap 2.3.2 menu into 20_13 through CSS alone.
Forum: Themes and Templates
In reply to: [Customizr] Comment reply buttonWell, all I can tell you is the links are proper. You may compare them to the ones on http://demo.themesandco.com/comment-test/
On that page you can also see what’s the normal behavior when a reply-to link is clicked. However, I have no clue on what’s disabling it of your website and I can only guess it is the same reason that broke the links in the first place.Here’s how you can debug this:
1. Copy the files you modified from Customizr in the child theme, keeping the folder structure.
2. Activate some default theme (e.g.: 2013)
3. Delete and than reinstall the same version of Customizr you have installed, from the repository
4. Activate your child theme and, one by one, rename the modded files (prefixing them with an underscore, for example). As you rename them, they won’t load anymore and the unmodified file, from Customizr, will be loaded instead of it. After you rename a file, check reply-to links to see if that file was causing it.If you end up with all files prefixed and reply-links still don’t work, it means the mods you made to Customizr were not causing this.
You can also try disabling your plugins one by one and see if any of them is causing this.
Forum: Themes and Templates
In reply to: [Customizr] 6 featured pages with images on front pageI assume this is the contents of your child theme’s functions.php. If that’s the case, replace all of it with this:
<?php add_filter('tc_fp_block_display', 'add_extra_fp'); function add_extra_fp($html) { $extra_fp_html = '<div class="row widget-area" role="complementary"> <div class="span4"> <div class="widget-front"> <div class="thumb-wrapper "> <a class="round-div" href="http://thegreenhousedepot.com/products/" title="Products"></a> <img width="270" height="250" src="http://thegreenhousedepot.com/wp-content/uploads/2013/11/Featured-Image-1-270x250.png" class="attachment-tc-thumb wp-post-image" alt="Featured Image 1" /> </div> <h2> Products </h2> <p class="fp-text-one"> Here you can find out what everybody else is doing to make a difference. </p> <a class="btn btn-primary fp-button" href="http://thegreenhousedepot.com/products/" title="Products"> Go Green! </a> </div><!-- /.widget-front --> </div><!-- .span4 --> <div class="span4"> <div class="widget-front"> <div class="thumb-wrapper "> <a class="round-div" href="http://thegreenhousedepot.com/contact-us/" title="Contact Us"></a> <img width="270" height="250" src="http://thegreenhousedepot.com/wp-content/uploads/2013/11/Featured-Image-21-270x250.png" class="attachment-tc-thumb wp-post-image" alt="Featured Image 2" /> </div> <h2> Contact Us </h2> <p class="fp-text-two"> You can contact us on the web or by phone. Speak to a professional with real experience and discover the greenhouse that best suits your needs. </p> <a class="btn btn-primary fp-button" href="http://thegreenhousedepot.com/contact-us/" title="Contact Us"> Go Green! </a> </div><!-- /.widget-front --> </div><!-- .span4 --> <div class="span4"> <div class="widget-front"> <div class="thumb-wrapper "> <a class="round-div" href="http://thegreenhousedepot.com/cool-videos/" title="Green Videos"></a> <img width="270" height="250" src="http://thegreenhousedepot.com/wp-content/uploads/2013/12/Featured-Image-5-270x250.jpg" class="attachment-tc-thumb wp-post-image" alt="Featured Image 5" /> </div> <h2> Green Videos </h2> <p class="fp-text-three"> Check out our video page where you can find helpful tutorials and get first exclusive info on the latest and greatest Green supplies! </p> <a class="btn btn-primary fp-button" href="http://thegreenhousedepot.com/cool-videos/" title="Green Videos"> Go Green! </a> </div><!-- /.widget-front --> </div><!-- .span4 --> </div><!-- .row widget-area -->'; return preg_replace('/'.preg_quote('<div class="container marketing">', '/').'/', '<div class="container marketing">'.$extra_fp_html, $html, -1); }… and you should be fine.
As a sidenote, if you read the documentation on how to create a child theme you would have noticed that style.css and functions.php are the only files that are NOT modified versions of their parent counterparts. They are additions. So, before doing any changes both of those files should be clean (style.css containing only the header and functions.php only the start of php mode <?php). As you start customizing, you add your custom functions to functions.php and your custom CSS to style.css.
You don’t need to create a template. The function above filters the posts displayed on homepage.
More on how filters work in WP here. It’s what makes WP flexible.
Forum: Themes and Templates
In reply to: [Customizr] 6 featured pages with images on front pageYes. If you keep folder structure, you can bring any file from Customizr and modify it and it will take precedence over the same file in Customizr folder. That’s the thing with child themes.
Err. Stop. I realized I only provided a quick fix, but I haven’t assesed the problem properly. You did not input the extra html well.
I just checked on a clean install of the theme and that div is supposed to have row class, not row-fluid.
Can you please post the function you added in your functions.php? I’ll be able to fix it for you if you do. Just put the code in between backticks(`), so it displays in a code window. Your code wrapping backticks shoud sit each on their own line, above and below the code.
Forum: Themes and Templates
In reply to: [Customizr] Comment reply buttonThere is a good chance that your mods to Customizr files are causing this, but I’m not excluding plugin interference. If you only want reply-to links to work add my function to functions.php and you’re done. If you find more bugs, bring them here and we’ll see what we can do.
Note: if your child theme’s functions.php has a ?> on its last line, add my code before it, not after. Also, being a pure php file, you’re much safer if you just delete that end-php-mode altogether. If you choose not to delete ?>, make sure you do not add anything after it (not even an empty space, tab or new empty line) as it will break your website.
A link would be helpful.
Glad you solved your problem.
Since you never got to log into your WP installation, you haven’t got a chance to activate Customizr theme.
Nevertheless, you chose to create a topic on the theme’s support forum and, after you found the source of the problem, you didn’t mark the topic as resolved.
We sure look forward to offering you more of our time and knowledge next time you have a problem with your website, should you chose to activate Customizr (or not), Offerlam.
Forum: Themes and Templates
In reply to: [Customizr] Comment reply buttonFor some reason, the reply-to links of your website are wrong. Their hrefs should be
“?replytocom={ID}#respond”, but instead they are “#comment-{ID}”. This can be solved by adding a preg_replace function that would change the hrefs back to what they’re supposed to be but, at least in theory, you should disable whatever is causing the bad reply-to links instead of patching them back with a search/replace function, that will increase the page loading time. Here’s the fix, in case you can’t find the cause:add_filter('tc_comment_list', 'fix_replyto_links'); function fix_replyto_links($output) { return preg_replace( "%(href=')#comment-([0-9]*)'%", "$1?replytocom=$2#respond'", $output, -1); }As you might have guessed, this snippet should go in your child theme’s functions.php.
So, have you installed any plugin that might interfere with WordPress comment links? Have you considered upgrading to the latest version of Customizr? Or to WP 3.8, for that matter?