Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
May 27, 2021 at 3:22 pm #1302670
Hello again,
confused, logo link is active :/ but not working, mouse not active (desktop only)
My functions.php:
add_action( 'after_setup_theme', 'my_theme_setup' ); function my_theme_setup() { add_editor_style(); // For the Block Editor. add_theme_support( 'editor-styles' ); } function wp_23223255_6469586506596() { add_image_size('entry_with_sidebar', 999, 999); add_image_size('entry_without_sidebar', 999, 999); } add_action( 'after_setup_theme', 'wp_23223255_6469586506596', 11 ); function add_logos($logo) { /* $logo .= '<span class="logo first-logo"><a href="/aaaaa">' ; $logo .= '<img src="https://www.silutevb.lt/silute/wp-content/uploads/2021/05/Logo_30Proc_mazesnis.png"/>'; $logo .= '</a></span>';*/ $logo .= '<span class="logo second-logo"><a href="/darbo-laikas" target="_blank">' ; $logo .= '<img src="https://www.silutevb.lt/silute/wp-content/uploads/Darbo_laikas.png"/>'; $logo .= '</a></span>'; return $logo; } add_filter('avf_logo_final_output', 'add_logos');
Quick CSS:
.av-main-nav ul { width: 260px; } @media only screen and (max-width: 767px) { .logo.second-logo img { padding-top: 20px; }} @media only screen and (max-width: 480px) { .responsive .logo img { max-width: 90%; }} @media only screen and (min-width: 768px) { .logo img { padding: 15px 0; }} /*.logo, .logo a { display: inline-block}*/ /*.logo:first-child img {display: none}*/ /*.logo.first-logo { z-index: 3 }*/ .logo.second-logo { z-index: 3 } .logo.second-logo { width: 100% } .logo.second-logo a { float: right !important } /*.logo.first-logo a, */ .logo.second-logo a { display: inline-flex } /*.main_menu:not(:first-of-type) { display: none !important }*/ /*.responsive #top .logo.first-logo { float: left;*/ } /*hide auto sidebar from magazine*/ .page-id-2967 .sidebar .widget_nav_hide_child { display: none; } /*2.8 firefox problem*/ .avia-image-container-inner, .avia_image { max-width: 100%; } #header_main .avia-menu-text { font-size: 16px; } .entry-content p { font-size: 18px; margin: 20px 0; line-height: 24px; } .header-scrolled #header_main > .container { display: none !important; } #socket .avia-bullet, #socket .avia-menu-fx { display: none; }
- This topic was modified 3 years, 5 months ago by EnvatoOvis.
May 27, 2021 at 3:47 pm #1302678Labas!
That is related to z-index. Please add following code to your custom CSS as well
.logo:first-child { z-index: 4; }
Cheers!
YigitMay 27, 2021 at 3:51 pm #1302679This reply has been marked as private.May 27, 2021 at 3:59 pm #1302683 -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘Yigit. Logo lost link’ is closed to new replies.