modify logo
This commit is contained in:
parent
7c8195a339
commit
375ef7c953
15 changed files with 34 additions and 14 deletions
BIN
.DS_Store
vendored
BIN
.DS_Store
vendored
Binary file not shown.
BIN
assets/.DS_Store
vendored
BIN
assets/.DS_Store
vendored
Binary file not shown.
BIN
assets/css/.DS_Store
vendored
Normal file
BIN
assets/css/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -151,10 +151,16 @@ input[type="search"]::-webkit-search-results-decoration {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header__logo--img img,
|
||||||
img {
|
img {
|
||||||
|
max-width: 80px !important;
|
||||||
|
max-height: 80px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
BIN
assets/font-icon/.DS_Store
vendored
Normal file
BIN
assets/font-icon/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
assets/font-icon/font-awesome/.DS_Store
vendored
Normal file
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
BIN
assets/font-icon/ionicons/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
assets/font-icon/simple-line-icons/.DS_Store
vendored
Normal file
BIN
assets/font-icon/simple-line-icons/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
assets/img/.DS_Store
vendored
Normal file
BIN
assets/img/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
assets/js/.DS_Store
vendored
Normal file
BIN
assets/js/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
assets/vendor/.DS_Store
vendored
Normal file
BIN
assets/vendor/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
assets/vendor/bootstrap/.DS_Store
vendored
Normal file
BIN
assets/vendor/bootstrap/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
assets/vendor/bootstrap/css/.DS_Store
vendored
Normal file
BIN
assets/vendor/bootstrap/css/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -522,7 +522,8 @@ if (!function_exists("escapium_post_header")) {
|
||||||
// }
|
// }
|
||||||
// add_action('wp_head', 'my_theme_enqueue_custom_global_css_in_blocks');
|
// 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
|
// Ellenőrzi, hogy egy adott bejegyzésnél engedélyezve vannak-e a hozzászólások
|
||||||
if (is_single() && comments_open()) {
|
if (is_single() && comments_open()) {
|
||||||
// Ha a hozzászólások engedélyezve vannak, két div osztály hozzáadása
|
// 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-comment-icon"></div>
|
||||||
<div class="custom-tooltip">Kommentelnél? DE NEM IDE! Vicceltem, katt rám!</div>
|
<div class="custom-tooltip">Kommentelnél? DE NEM IDE! Vicceltem, katt rám!</div>
|
||||||
</div>';
|
</div>';
|
||||||
echo '';
|
echo "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Akciók lefuttatása a bejegyzés tartalmának megjelenítése előtt
|
// 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()
|
function register_style()
|
||||||
{
|
{
|
||||||
|
@ -671,6 +670,20 @@ function custom_homepage_title($title, $id = null)
|
||||||
}
|
}
|
||||||
return $title;
|
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
|
// A the_title filtert használjuk, hogy módosítsuk az oldal címét
|
||||||
add_filter("the_title", "custom_homepage_title", 10, 2);
|
add_filter("the_title", "custom_homepage_title", 10, 2);
|
||||||
|
|
||||||
|
|
17
header.php
17
header.php
|
@ -39,14 +39,15 @@
|
||||||
|
|
||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<div class="header__logo header__logo--img">
|
<div class="header__logo header__logo--img">
|
||||||
<a href="<?php echo get_home_url(); ?>">
|
<?php if (has_custom_logo()): ?>
|
||||||
<img
|
<?php the_custom_logo(); ?>
|
||||||
src="<?php echo get_bloginfo(
|
<?php else: ?>
|
||||||
"template_directory"
|
<h1 class="site-title">
|
||||||
); ?>/assets/img/small-logo.webp"
|
<a href="<?php echo esc_url(home_url("/")); ?>">
|
||||||
srcset="<?php echo get_bloginfo(
|
<?php bloginfo("name"); ?>
|
||||||
"template_directory"
|
</a>
|
||||||
); ?>/assets/img/small-logo.webp" alt="rplogo" title="RP Logó" width="auto" height="auto"></a>
|
</h1>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main Navigation -->
|
<!-- Main Navigation -->
|
||||||
|
|
Loading…
Reference in a new issue