TouchCoding.net - Øyvind Sæther
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [TopShop] Remove the Title Text in the Slider ImagesHi Heatherfish! 🙂
This should be easily done with css. How did you apply the css that did not work? Custom css plugin or child theme? And what code did you use?This css worked for me:
.home-slider div h3 { display: none; }This will remove the header3 on the slider. Anything else you wanted to remove?
Forum: Themes and Templates
In reply to: How to move menu and cart outside headerYou are using a child theme right? What else is in your functions.php? Have you modified something else?
I used the code on a test site running storefront and it worked for me.
Forum: Themes and Templates
In reply to: How to move menu and cart outside headerSorry this took so long… But here is the code:
<?php if ( ! function_exists( 'storefront_header_cart' ) ) { function storefront_header_cart() { if ( is_woocommerce_activated() ) { if ( is_cart() ) { $class = 'current-menu-item'; } else { $class = ''; } ?> <ul class="site-header-cart menu"> <li class="<?php echo esc_attr( $class ); ?>"> <?php storefront_cart_link(); ?> </li> <li> <?php the_widget( 'WC_Widget_Cart', 'title=' ); ?> </li> </ul> <?php } } } if ( ! function_exists( 'storefront_primary_navigation' ) ) { /** * Display Primary Navigation * @since 1.0.0 * @return void */ function storefront_primary_navigation() { ?> <nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_html_e( 'Primary Navigation', 'storefront' ); ?>"> <button class="menu-toggle" aria-controls="primary-navigation" aria-expanded="false"><?php echo esc_attr( apply_filters( 'storefront_menu_toggle_text', __( 'Navigation', 'storefront' ) ) ); ?></button> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => 'primary-navigation', ) ); wp_nav_menu( array( 'theme_location' => 'handheld', 'container_class' => 'handheld-navigation', ) ); ?> </nav><!-- #site-navigation --> <?php } } function child_remove_parent_function() { remove_action( 'storefront_header', 'storefront_primary_navigation', 50); remove_action( 'storefront_header', 'storefront_header_cart', 60); } add_action( 'wp_loaded', 'child_remove_parent_function' ); function child_theme_init() { add_action( 'storefront_before_content', 'woa_primary_nav_wrap', 5 ); add_action( 'woa_primary_nav', 'storefront_primary_navigation', 5 ); add_action( 'woa_primary_nav', 'storefront_header_cart', 10 ); } add_action( 'init', 'child_theme_init' ); function woa_primary_nav_wrap() { ?> <div class="col-full primary-nav-wrap"> <?php do_action( 'woa_primary_nav' ); ?> </div> <?php }Copy that into your functions.php in your child theme and I think that should do the trick 🙂 you can style the menu after this ofc.
Forum: Themes and Templates
In reply to: [onetone] Can't Center Table!No problem bnlauren! 🙂 Let me know if you need anything else
Forum: Themes and Templates
In reply to: How to move menu and cart outside headerCan you link to your site please? or is it local? I might be able to use css in order to move the navbar.
Forum: Themes and Templates
In reply to: [Fukasawa] Dropdown MenuOh sorry… haven’t used Fukasawa before, so I didn’t know that, but you can use some simple css to create a dropdown menu.
Try this:
.menu-item { position: relative; display: inline-block; } .sub-menu { display: none; position: absolute; background-color: #f9f9f9; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); padding: 12px 16px; z-index: 1; } .menu-item:hover .sub-menu { display: block; }Try that and let me know if that was what you were after.
Forum: Themes and Templates
In reply to: [Fukasawa] Dropdown MenuHi there Altlabart!
You can easily do this be dragging the menu item around within the “menu structure” under Appearance>menushere is an example: http://postimg.org/image/jyw7c04k3/
I used countries as the main menu item and then all the countries as sub menu items.
Hope this helped you out. 🙂
Forum: Themes and Templates
In reply to: How to move menu and cart outside headerHi there Padodalu!
I don’t understand why you want that. The header is usually where the nav is located. If you don’t look the background image of the header that can be removed. Please reply with some more explanation of what you want to achieve.Forum: Themes and Templates
In reply to: [onetone] Can't Center Table!How did you apply the css? Are you sure you applied it correctly? Try changing the background color to red or something like that, just to see if your css sticks to your site.
Forum: Themes and Templates
In reply to: removing these ugly bars in twenty-sixteenHi there rustinpeace91! 🙂
The bar you are talking about is this css right here:border-top: 4px solid #1a1a1a;You can easily remove this in your css file or you could write this code:
border-top: none;For example if you wanted to remove the bar over the widget section in your sidebar use this code:
.widget { border-top: none; }Hope this helps you out! 🙂
Forum: Themes and Templates
In reply to: [onetone] Can't Center Table!Hi there bnLauren! 🙂
Your problem can be solved with some simple css. You need to define a width for the panel-grid based on the user’s screen size and then set the margin left and right to auto.
Try this css:
@media only screen and (min-width: 1200px){ #pg-4-1, #pg-4-2 { width: 1170px; } } @media only screen and (min-width: 992){ #pg-4-1, #pg-4-2 { width: 970px; } } @media (min-width: 768px) #pg-4-1, #pg-4-2 { width: 750px; } @media only screen and (min-width: 768px){ #pg-4-1, #pg-4-2 { width: 750px; } } #pg-4-1, #pg-4-2 { margin-right: auto; margin-left: auto; }Hope this helps you out 😀
Forum: Themes and Templates
In reply to: [Sparkling] change color 3 bars of the responsive menuweird… When I apply that css the three bars changes color. Are you sure you targeted the .icon-bar, like I did. It should work.
Forum: Themes and Templates
In reply to: [Sparkling] change color 3 bars of the responsive menulook though your custom css code and look at what you changed. I can’t really help you with that since it’s locally. If you can’t figure it out, try to delete your child theme and create a new one. If that doesn’t work either reinstalling your theme would be the next thing you could try 🙂
Forum: Themes and Templates
In reply to: [Twenty Twelve] Dequeue child style.cssHi Superpoincare!
This article from the WordPress Codex might help you out:
https://codex.wordpress.org/Function_Reference/wp_dequeue_styleIt describes how to dequeue any stylesheet. Hope that helps 🙂
Forum: Themes and Templates
In reply to: [Intergalactic] Add favicon in Intergalactic themeHi Woil-16!
Here is a link to the WordPress Codex covering this topic: https://codex.wordpress.org/Creating_a_Favicon
This guide should make it easy to add a custom favicon, but if you need more help, please contact me again 🙂