Christian Sabo
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Baskerville] Logo and titleIf you are using a child theme, you might want to try the following code (located in header.php).
<div class="header-inner section-inner"> <div> <?php $custom_logo_id = get_theme_mod( 'custom_logo' ); $legacy_logo_url = get_theme_mod( 'baskerville_logo' ); $blog_title_elem = ( ( is_front_page() || is_home() ) && ! is_page() ) ? 'h1' : 'div'; $blog_title_class = $custom_logo_id ? 'blog-logo' : 'blog-title'; $blog_title = get_bloginfo( 'title' ); $blog_description = get_bloginfo( 'description' ); if ( $custom_logo_id || $legacy_logo_url ) : $custom_logo_url = $custom_logo_id ? wp_get_attachment_image_url( $custom_logo_id, 'full' ) : $legacy_logo_url; ?> <a class="logo" href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" style="float:left; clear:both;" > <img src="<?php echo esc_url( $custom_logo_url ); ?>"> <span class="screen-reader-text"><?php echo $blog_title; ?></span> </a> <?php endif; ?> <h1 class="blog-title"> <a href="<?php echo esc_url( home_url() ); ?>" rel="home"><?php echo $blog_title; ?></a> </h1> <?php if ( $blog_description ) : ?> <h3 class="blog-description"><?php echo $blog_description; ?></h3> <?php endif; ?> </div> </div><!-- .header-inner -->
- This reply was modified 3 years, 1 month ago by Christian Sabo.
- This reply was modified 3 years, 1 month ago by Christian Sabo.
Forum: Plugins
In reply to: [Widget CSS Classes] Widget Class boxes missing in Block Editor… and IDs to p-Block
… and to the shortcode block …
… …??
Forum: Plugins
In reply to: [Widget CSS Classes] Widget Class boxes missing in Block Editor+1 for bringing custom classes to the ‘custom HTML’ widget in the block editor ??
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 triggers Facebook Container warningHi,
the badge is triggered by Firefox’s Extension “Facebook Container”.
See
https://support.mozilla.org/de/questions/1345601
and
https://github.com/mozilla/contain-facebook/issues/783Forum: Plugins
In reply to: [Flamingo] Plugin Settings neededHi @avantart we had a similar use case and solved it 2 years ago.
Install and activate the plugin ?User Role Editor? by Vladimir Garagulya
https://www.ads-software.com/plugins/user-role-editor/.
You can use this plugin to set up a new role called e.g. ?Flamingo readonly?.
This role needs just 3 permissions granted: edit_users and read and level_0 (deprecated).
Then, you can assign these role to your users (even in addition to other roles, IIRC).To insert code snippets into the functions.php of the theme is dangerous.
My clients changed the site theme and deleted the old theme. So all modifications were lost.To avoid this, you can take your code off your functions.php and put it in a plugin. This way it can stay active while switching themes.
https://developer.www.ads-software.com/plugins/intro/what-is-a-plugin/
https://developer.www.ads-software.com/plugins/plugin-basics/header-requirements/MU-Plugins even can’t be deactivated via Dashboard …
Forum: Plugins
In reply to: [Flamingo] How to uninstall flamingo pluginThe plugin does not delete its data when uninstalling. Unfortunately.
Perfect would it be if one could choose (delete on uninstall? yes/no) …For all of you who want to get rid of the data, try my SQL statement (backup your database before!)
DELETE wp_postmeta, wp_posts FROM wp_postmeta INNER JOIN wp_posts WHERE ( ( wp_posts.post_type = 'flamingo_inbound' ) AND ( wp_postmeta.post_id = wp_posts.ID ) )
It searches all posts by type (‘flamingo_inbound’) and deletes the corresponding entries in ‘postmeta’ where the IDs match. This works more universally than the list @arlinaite grabbed ??
- This reply was modified 3 years, 5 months ago by Christian Sabo.
Haha, perfect – that’s exactly the point I was looking for (and obviously not able to find).
@mariatogonon
Thanks Maria!Hi, thanks for your quick response!
I don’t think this is an issue with other plugins or the used theme.
I just deactivated ALL other plugins and switched to Twenty Twenty One -> problem persists.Here’s how to reproduce the issue:
New Browser, private mode, Popup Maker 1.16.1 active.
Reload page, web dev tools show a request:
GET https://fonts.googleapis.com/css?family=Montserrat:100
Browser Source (HTML HEAD) contains:
/* Popup Google Fonts */ @import url('//fonts.googleapis.com/css?family=Montserrat:100');
Looking into the plugin’s files, /assets/js/admin-theme-editor.js:129
if (typeof pum_google_fonts[chosen_font] !== 'undefined') { url = "//fonts.googleapis.com/css?family=" + chosen_font;
Next step: different browser, deactivate Popup Maker.
Back to first browser, reload -> no request for Google Fonts/Montserrat …
(Yet, the cache files in /wp-content/uploads/pum/ still might contain outdated code.)Forum: Requests and Feedback
In reply to: Typo in German VersionThanks to all of you!
@ratteimsuff @pomegranate
“Bestelldatum” will be back in about 30 minutes ??Forum: Themes and Templates
In reply to: [Hueman] remove function from hook ‘wp_head’ does not workokay, I got it …
wrong hook ??This one will work:
function my_remove_gfonts() { remove_action( 'wp_head', 'hu_print_gfont_head_link', 2 ); } add_action( 'after_setup_theme', 'my_remove_gfonts', 2 );
Forum: Themes and Templates
In reply to: [Baskerville] Remove Author Info In Post@1btcnews
The theme Baskerville does not have any element with class “postauthor-inner”, so you will need to adjust my cody according to the class used in your theme …Most Browsers do offer web developer tools. You can use these to inspect the source code and identify all elements.
To remove elements, you can address them via CSS/customizer by id or class.
Some examples:<div id="postauthor"> --> CSS = div#postauthor { display: none; } <div class="postauthor"> --> CSS = div.postauthor { display:none; }
- This reply was modified 4 years, 7 months ago by Christian Sabo.
- This reply was modified 4 years, 7 months ago by Christian Sabo.
Forum: Themes and Templates
In reply to: [Baskerville] Remove Author Info In PostBe sure the button in the top right corner is set to ?publish?, not only ?save?.
Forum: Themes and Templates
In reply to: [Baskerville] Remove Author Info In Post@1btcnews I haven’t clicked your link (and won’t do so), but the code
div.post-meta-container { display:none; }
should do it …Forum: Themes and Templates
In reply to: [Baskerville] Big Space Between Title And Post Body@tomkrehbiel
You can insert the CSS code via Customizer: from your Dashboard navigate to Appearance > Customizer > Additional CSS and paste it there. Be sure the button in the top right corner is set to ?publish?, not only ?save?.