modify logo

This commit is contained in:
gabeszm 2024-12-06 18:24:38 +01:00
parent 7c8195a339
commit 375ef7c953
15 changed files with 34 additions and 14 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
assets/.DS_Store vendored

Binary file not shown.

BIN
assets/css/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -151,10 +151,16 @@ input[type="search"]::-webkit-search-results-decoration {
box-sizing: border-box;
}
.header__logo--img img,
img {
max-width: 80px !important;
max-height: 80px !important;
}
/*img {
max-width: 100%;
height: auto;
}
}*/
.hidden {
display: none;

BIN
assets/font-icon/.DS_Store vendored Normal file

Binary file not shown.

BIN
assets/font-icon/font-awesome/.DS_Store vendored Normal file

Binary file not shown.

BIN
assets/font-icon/ionicons/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
assets/img/.DS_Store vendored Normal file

Binary file not shown.

BIN
assets/js/.DS_Store vendored Normal file

Binary file not shown.

BIN
assets/vendor/.DS_Store vendored Normal file

Binary file not shown.

BIN
assets/vendor/bootstrap/.DS_Store vendored Normal file

Binary file not shown.

BIN
assets/vendor/bootstrap/css/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -522,7 +522,8 @@ if (!function_exists("escapium_post_header")) {
// }
// add_action('wp_head', 'my_theme_enqueue_custom_global_css_in_blocks');
function custom_comment_check() {
function custom_comment_check()
{
// Ellenőrzi, hogy egy adott bejegyzésnél engedélyezve vannak-e a hozzászólások
if (is_single() && comments_open()) {
// Ha a hozzászólások engedélyezve vannak, két div osztály hozzáadása
@ -530,14 +531,12 @@ function custom_comment_check() {
<div class="custom-comment-icon"></div>
<div class="custom-tooltip">Kommentelnél? DE NEM IDE! Vicceltem, katt rám!</div>
</div>';
echo '';
echo "";
}
}
// Akciók lefuttatása a bejegyzés tartalmának megjelenítése előtt
add_action('wp_footer', 'custom_comment_check');
add_action("wp_footer", "custom_comment_check");
function register_style()
{
@ -671,6 +670,20 @@ function custom_homepage_title($title, $id = null)
}
return $title;
}
//Logó
function mytheme_custom_logo_setup()
{
add_theme_support("custom-logo", [
"height" => 80, // A logó alapértelmezett magassága
"width" => 80, // A logó alapértelmezett szélessége
"flex-height" => false, // Ne engedje a rugalmas magasságot
"flex-width" => false, // Ne engedje a rugalmas szélességet
"header-text" => ["site-title", "site-description"], // Szöveg, ami megjelenhet a logó mellett
]);
}
add_action("after_setup_theme", "mytheme_custom_logo_setup");
// A the_title filtert használjuk, hogy módosítsuk az oldal címét
add_filter("the_title", "custom_homepage_title", 10, 2);

View file

@ -39,14 +39,15 @@
<!-- Logo -->
<div class="header__logo header__logo--img">
<a href="<?php echo get_home_url(); ?>">
<img
src="<?php echo get_bloginfo(
"template_directory"
); ?>/assets/img/small-logo.webp"
srcset="<?php echo get_bloginfo(
"template_directory"
); ?>/assets/img/small-logo.webp" alt="rplogo" title="RP Logó" width="auto" height="auto"></a>
<?php if (has_custom_logo()): ?>
<?php the_custom_logo(); ?>
<?php else: ?>
<h1 class="site-title">
<a href="<?php echo esc_url(home_url("/")); ?>">
<?php bloginfo("name"); ?>
</a>
</h1>
<?php endif; ?>
</div>
<!-- Main Navigation -->