Mikuda
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsThank You very much for help Andrew!
I’ll certainly have more questions very soon, but new thread will be better.
Glad to know our discussion was helpful to You monitimul!How about closing thread and mark SOLVED? ??
Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsWell, in the end solution turned out to be even more simpler.
I found a procedure called “derivative-theme” instead of “child theme”
– duplicated theme folder,
– renamed to something desired,
– changed name in style.css,
And that’s all.In fact I don’t even understand entire “child-theme” fuzz anymore,
since above method works much better O.o
– you can edit theme as much as you like
– you have access to all necessary theme files in the same directory
– if You mess something up you can reinstall original theme and copy
that one particular file that you need
– you do not worry that surprise original theme update will
override or conflict with your child-theme modification.
– since you intend to redesign original theme, You don’t need
it’s updates anyway.
– it is completely new, independent theme that You have full control ofForum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsNow:
-after update of original theme will my child theme remain intact?
-can I copy all remaining files/folders (except style and functions)
to child folder and remove/redownload original one to revert it to default settins?Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsWell, actually it still didn’t work (“fatal error” response)
BUT I found “Child Theme Configurator” plugin that did the job right.
Here is content of functions.php it created:<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): function chld_thm_cfg_parent_css() { wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css' ); } endif; add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css' ); // END ENQUEUE PARENT ACTION
Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsSo, step by step for dummies ??
– create (in this case) “twentythirteen-child” folder
– copy there ALL contents from original folder EXCEPT functions.php and folders (css, genericons, images, inc, js, languages)
– add
/* Theme Name: Twenty Thirteen Child Template: twentythirteen */
on top of style.css
– create brand new, blank “functions.php” file, and then insert in it:
<?php function theme_enqueue_styles() { wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css'); } add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
And thats ALL that should be in this file?
Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsWell, I guess I did ?? Shouldn’t I?
Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsCan’t make it work :/
No matter what code I put into functions.php
(Yours or codex) and no matter in what order/combination I put it,
I end up either with error:
“Fatal error: Cannot redeclare twentythirteen_setup() (previously declared in /home/virt1517/domains/3k6hobby.com/public_html/wp-content/themes/twentythirteen-child/functions.php:69) in /home/virt1517/domains/3k6hobby.com/public_html/wp-content/themes/twentythirteen/functions.php on line 108”
OR with incomplete template – i.e. no top logo, no bottom widgets etc.When I reapply original theme (the one modified by me that is) all goes back to normal but I’m worried about theme update…
Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsThank You again, It’s late for me – I will try doing it tomorrow to avoid disaster ??
Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsYeah, I learned about making “child themes” too late, my original “20-13” is heavily trimmed now, and I worry something will be messed up when theme actualisation show up.
Can I move all that I have done so far to “child-theme” directory and continue from there?Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positionsThank You again for response, I used this code:
li#menu-item-47-pl a { color:000; font-weight:normal; } li#menu-item-49-en a { color:000; font-weight:normal; }
Which – if I understand correctly – allows to modify all properties WITHIN menu-item box,
while:.main-navigation ul li:nth-child(2) { float: right; }
“floats” the box itself.
Am I right?
Anyway works now so SOLVED Too.***
About Mobile problem – that’s something I intuitively wanted to do,
but how do I “hide” or “show” something in particular mode?
How can I find this code section?Forum: Fixing WordPress
In reply to: Language switcher in mobile and menu child-items positions`Thank You Andrew!
– Adjusted site max-width and other other elements to fit each other
SOLVED– So how should syntax look like to set preferences of single menu item?
(like: padding, background, font weight/color/decoration?)
In fact all I need for now is to make PL/EN language selector in light
or normal font-weight instead of bold.
I’m not too familiar with<li>
structure…
Or maybe I should exclude one item from this “list” somehow?
Just guessing…– Creating two separate menus was my first thought but I don’t know how
to put two menus side-by-side on one menu bar, theme customization do
not have such option so it should be entered manually somehow
…help? ??
Meanwhile I used work-around by changing items order in menu settings.
Will do for now. SEMI-SOLVED– Yes, move “PL” (and maybe “contact” too) but OUT of drop-down menu
completly, so it’ll appear on the right side of horizontal red bar.
Something like this – I’ll try some ASCII art ??
____________________
| MENU V??????????????PL |
———————————-
I understand that “PL” element is currently assigned to this menu.
So it might require creating something like whole different instance
of menu, to be used in “mobile-mode”. I hope it’s more clear now ??