acub
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Displaying full post content on blog pageI had no idea they refer to that.
Most themes I used use check it to decide on whether to display full content or excerpts in content lists and, for all I know, nikeo is going to do the same for Customizr in the next release.
Forum: Themes and Templates
In reply to: [Customizr] Displaying full post content on blog pageAs of now all content lists are displayed as excerpts. Afaik, the next release of Customizr will check WP’s setting on whether to display excerpts or full content and comply.
Forum: Themes and Templates
In reply to: [Customizr] How to make text "flash"Your question is outside the scope of this theme’s support forum. It’s not even remotely related to WordPress.
Therefore I suggest you make a query in your search engine of choice.
Actually, I did some reading on the subject… and the answer to your question is: no. At least not for the current version of Customizr.
Because the device screen width cannot be modified and media query rules apply based on that value.
The simplest method I can think of to disable responsiveness is to declare all media queries based on a class applied to the html. So by attaching/detaching the class from the html tag, the layout would become responsive or not.
For Customizr that would mean a complete rewrite of the CSS.
Forum: Themes and Templates
In reply to: [Customizr] Pages with pulldown menu won't openI thought your problem is you cannot access parent pages through the menu. This is how the theme was made. It’s a standard Tweeter Bootstrap 2.3.2 menu and the clicks on parents only open the submenus, because mobile devices cannot hover. They can only click, so links on parents were sacrificed.
However, the page I linked you provides a workaround this problem, through the use of carets. If you click the caret beside the name of the parent you open the submenu. And if you click the parent (the word) you go to the link.
If that doesn’t solve your problem, maybe spending some time on… “the blog” does, (it’s the official theme’s website, btw) and eventually you might find the answer to your problem.
I highly recommend “the blog” ‘s FAQ.
Put this in your child theme’s functions.php:
if (wp_is_mobile()) { add_action('__after_header', 'add_mfw_button'); add_action('wp_enqueue_scripts', 'enq_bfw_button_script'); } function enq_bfw_button_script() { wp_enqueue_script('mfwbutton', get_stylesheet_directory_uri().'/js/mfwbutton.js', array( 'jquery' )); } function add_mfw_button() { echo '<a href="#" onclick="return false;" class="mfw-button btn btn-primary">Full Width</a>'; }Put this in your child theme’s style.css:
body.mobile-full-width { width: 1020px; } a.mfw-button.btn { padding-top: 15px; box-shadow: -1px 1px 7px 0 rgba(0,0,0,.21); position: absolute; left: -35px; top: 70px; font-weight: bold; font-size: small; -webkit-transform: rotate(-90deg); -moz-transform: rotate(-90deg); -ms-transform: rotate(-90deg); -o-transform: rotate(-90deg); filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3); } a.mfw-button.btn:hover, a.mfw-button.btn:active { box-shadow: -3px 3px 7px 0 rgba(0,0,0,.35); }Create a js folder in your child theme and save the following code as mfwbutton.js inside it – path should be /wp-content/themes/{customizr-child}/js/mfwbutton.js (replace {customizr-child} with your child theme’s folder name):
jQuery(document).ready(function($){ $('.mfw-button').click(function(){ $(this).toggleClass('btn-primary'); $('body').toggleClass('mobile-full-width'); }); });I’ve made a button that toggles width of body between screen resolution and 1020px when pressed. Styled it as a button, so it matches whatever skin/color you have chosen for the website. Also added a small lifting effect when active. If your website content looks best at a different width, change 1020px in the css above to whatever you want (should remain between 900 and 1200px though).
If you want to preview it, I’ve tested it on customizr.websiter.ro and I’ll leave it there for a while.
Note: the wp_is_mobile() check is disabled on the test site, so it can be seen from any device, not just mobiles.
Another note: If you don’t have a child theme, make sure you read how to properly create one either here, in the WP Codex, or on the theme’s website, in FAQ.Forum: Themes and Templates
In reply to: [Customizr] How To Change Slider?Did you create sliders? You can’t use sliders that do not exist.
Upload pictures and create sliders from their edit screens. Than go back to Customize screen and select your newly created slider for the front page.
You can create as many sliders as you want and you may select them from page edit screen to display on a particular page.
Forum: Themes and Templates
In reply to: [Customizr] Resize Title of widgets in CustomizrAn alternative to Firebug is Chrome’s native “Inspect element” on right click. The good parts:
– allows you to edit html and CSS in your browser window and see the changes live. You may than copy the code in your files and upload.
– shows you what CSS declarations are active (they’re stroked when overridden and you can easily find what’s overriding them).
– the best part is that it shows me the exact selectors for any declarations, which allows me to build stronger CSS selectors to override that code in case I don’t want to modify the original file.Forum: Themes and Templates
In reply to: [Customizr] Set custom width to header and slider@cari.h.cayton: this will center your header.
.row-fluid .navbar-wrapper{ float: none; margin: 0 auto; width: 90%; }Forum: Themes and Templates
In reply to: [Customizr] Images between logo and menuYes, it’s possible.
1. Write the HTML down for the three logos and heave it ready to copy/paste.
2. Add this code at the end of your child theme’s functions.php. Please note that if functions.php ends in a ?> you need to paste this code above it, not after it. Having anything after the ending php tag, even empty lines or white space will probably break your website.add_filter('tc_logo_title_display', 'add_html_below_logo'); function add_html_below_logo($output) { $extra_html = ''; // Paste html in this line, between the apostrophes return preg_replace('/<\/div>/', $extra_html.'</div>', $output, -1); }3. Paste your html between the apostrophes of the line that says: “Paste html in this line, between the apostrophes”.
4. Save and upload.
5. Good luck with your festival!
Forum: Themes and Templates
In reply to: [Customizr] How do I make a fubctions.php?Your my_custom_credits() was copy/pasted only partially. All php functions have this structure:
title_of_function($vars) { // lines of code }title_of_function = name by which the function is called. Mandatory.
$vars = any number of variables that are used when function is called to pass parameters about the context in which the function is called. Note that even when you don’t have any vars you still need to end the name of the function with round parenthesis: example_functio();
// lines of code = hard to believe, but they are optional. Yes, you can declare a function in php that doesn’t do anything. You than call it and nothing happens. The only rule about the lines of code is that they have to be wrapped in accolades, so the parser knows when the function has ended, so he can get back to the place from where the function was called and continue parsing.So, your solution is to go back to the place where you got the my_custom_credits() function and copy/paste all of the code this time.
If the function doesn’t end, the site breaks. It’s that simple.
Forum: Themes and Templates
In reply to: [Customizr] IE bug with links@nikeo: Important!
@karactur: Just found a fix for this. Most likely, this issue will be solved in the next Customizr release. Here’s the solution until than:
1. Save a 1px * 1px transparent img.png file to a location of your choice (I have put mine in the /images/ folder of my child theme).
2. Add this code in your child theme’s style.css:
.round-div {background: url(images/img.png) 0 0 repeat;}where url() should contain the path to your file.
Thank you for reporting this.
Well, technically, it doesn’t need one. PHP documentation says that “pure php files” should omit the ending tag, so the possibility of having white space sent before headers is smaller.
If you don’t have one you might either put one yourself on the last line of the file or you might just add your code at the end of it without worries.
I mentioned it above because non-php-able users, when told to add a function at the end of a php file and the file has the ending tag, there is a big risk of adding code after the tag and that will, most probably, generate a WSoD error.
@esmi: his question is legit, it’s about the solution posted above. He was unsure on how to apply it.
Forum: Themes and Templates
In reply to: [Customizr] Images between logo and menuYes, but you need to tell me how do you want those images displayed on narrow screens, when your logo is centered. Narrow your browser down to see what I’m talking about.