komiska
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Nineteen] Header Menu, more button on mobileHi, just a heads-up: I’ve struggled with “more” button behaviour on desktop, it appeared there when it shouldn’t.
So I dug through the files trying things out and found a TYPO!
It’s in the “priority-menu.js” file ind the “js” folder.
Twice.
Line 147:` // Recur if the visible list is still overflowing the nav
if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) {
updateNavigationMenu( container );
}
}`and
Line 123:
if ( isOverflowingNavivation( visibleList, toggleButton, container ) ) {
I’ve also tweeted about it, please do change the typos in the TwentyNineteen download package ??
I hope that will fix all the weird behaviour. it did for me..@wordpress ?????? #TwentyNineteen Theme: You guys! I've found a typo in your "priority-menu.js" file:
' function isOverflowingNavivation( list, button, container ) {
return list.offsetWidth > getAvailableSpace( button, container );
} '— jesterhead ?? (@komiska) March 21, 2019
THIS WORKED:
function company_customlogo() { add_theme_support( 'custom-logo', array( 'width' => 400, 'height' => 100, ) ); } add_action( 'after_setup_theme', 'company_customlogo', 11 );
Answer provided by @imranaliweb
Obviously, as noted in the Codex, one has to write out the entire new function,
not only copy theadd_theme_support
part from the parent theme.Fighting with the same problem: there seems really to be an issue with custom-logo size setting ??
Created a TwentyNineteen Child Theme, and copied functions.php , edited the custom-logo function, but still the cropping is forced to the square ??
Adding this to the child theme functions.php didn’t work:/** * Add support for core custom logo. * */ add_theme_support( 'custom-logo', array( 'height' =>95 , 'width' => 295, 'flex-width' => true, 'flex-height' => true ) );
I’ve serached all the files in twentynineteen and there’s no other place the custom-logo is mentioned . i thought maybe some JS would keep it as is, but maybe the function itself is not working in child themes?
Thanks in advance for any help on this !
Forum: Developing with WordPress
In reply to: Linking front-page.php to home.phpYES! OMG thank you!
But WHY?! i thought, if i have an actual PAGE set as a Posts Page, and if it uses the Standard Template it would be page.php , not index.php / home.php. or did I get that part wrong?
I also tried setting the Blog page as Posts Page before, but then i just got linked to that empty page titled Blog, which means it was using the page.php Template and not the home.php.
Also, this did not work, as opposed to your
<?php echo..
function:
<a href='<?php echo esc_url( get_permalink( get_option( 'page_for_posts' ) ) ); ?>'
WHY?
i guess that’s a topic for a whole book chapter…THANK YOU, thank you!
Forum: Themes and Templates
In reply to: [Phogra] How to create slide picture in homepage?Nooooo! they just closed it down, without notifying anyone :/
This is a disaster .
I was just working on a portfolio site for someone and now there’s nothing one can check with.
https://templatypus.com/support- This reply was modified 8 years, 1 month ago by komiska.
Hello there,
having the same problem as a client updated to 3.8.3. and got a double of a Page in the list of Pages in the Dashboard, but another Page has completely disappeared with all the content it had: some 30 paragraphs.
Of course, they did not automagically reappear upon update to 3.9
Any remedies?S.O.S.
Forum: Localhost Installs
In reply to: Cannot update to WordPress 3.7.1 on MAMPProblem solved with help and patience from Matteo Spinelli, https://cubiq.org/
Forum: Fixing WordPress
In reply to: Cannot update wordpress on mamp since 3.7.1 !!!!!!Problem resolved by whitelisting MAMP on the LittleSnitch – something must have changed in www.remarpro.com settings that LittleSnitch did not like and was stopping the connection from MAMP to de.www.remarpro.com .
Enormous THANKS to Matteo Spinelli, https://cubiq.org/ for the patience and guidance!Forum: Localhost Installs
In reply to: Cannot update to WordPress 3.7.1 on MAMPThis is the latest from
Background Update TesterPASS: Your WordPress install can communicate with www.remarpro.com securely.
WARNING: A previous automatic background update could not occur. We’ll try again with the next release. The error code was download_failed.
PASS: No version control systems were detected.
PASS: Your installation of WordPress doesn’t require FTP credentials to perform updates.
WARNING: Couldn#8217;t retrieve a list of the checksums for WordPress 3.7. This could mean that connections are failing to www.remarpro.com.Forum: Localhost Installs
In reply to: Cannot update to WordPress 3.7.1 on MAMPNow i’m sure this is a 3.7.1. bug:
cannot update ANY of my clients’ local sites on MAMP.
I have 5 sites I’m administrating for clients, and none of them can be updated to 3.7.1 locally.Forum: Fixing WordPress
In reply to: wp_list_categories all of a sudden won't exclude a categoryHm, thank you all for the information, I’ll wait till the next WP version – the time an effort are disproportionate to the use of the function.
Also because IMPORTANT :for me the
<?php wp_list_categories('orderby=name&title_li=&depth=-1&exclude=3'); ?>
WORKS on the live site (GALERIE) but not on the MAMP local site ( sorry, no screen captures allowed here) …I’m not an experienced coder, so even if I try to understand what is going on on the server side,not really able to test different possibilities.
@joynic : thank you , i’ve tried, but the code gives me a blank page.
Forum: Fixing WordPress
In reply to: wp_nav_menu not generating current-menu-itemThis is the page with the issue:
https://mariusschwemmer.de/impressionen/galerie/As you can see, all is well with the “Galerie” and “Rezensionen” Link, but why all of a sudden, “Audiobeispiele” does not get eth “current-menu-item” class?
It’s a page that has been added to the same menu .
:-/
Forum: Fixing WordPress
In reply to: Highlight ancestor AND current menu item at the same timeHello! Has anyone found out WHY WordPress won’t add the “current-menu-item” class?
Any solutions?
Need help, client unhappy, still unsolved :/Forum: Fixing WordPress
In reply to: Highlight ancestor AND current menu item at the same timeHello, again!
I have (not so elegantly*) solved the above, but now,
I have another question:
Why is the “current_menu_item” or “current_page_link” or similar NOT generated in the SECOND li :https://mariusschwemmer.de/kalender/campus-3/
If I click on to “Kalendarium” – the “current link” ( well all of them – get highlighted.
If I click on “Campus” – Firebug does not show me any “current-menu-item” – there is nothing i could style.How did this happen? What did I do wrong?
(*I’d love actually to highlight ONLY the LI + the current UL LI at the same time, not all of them, but did not really succeed )
Forum: Fixing WordPress
In reply to: Highlight ancestor AND current menu item at the same timeI have found the answer ( thank you, Firebug developers!)
The horizontal/top menu had a WP class of “.current-page-ancestor” and the sidebar menu items got the WordPress class of “.current_page_parent” so it was easy to add the CSS styles to each, regardless the menu items defined by the client.Thanks again for the feedback ! ??