• Resolved Konpaku

    (@konpaku)


    Hello,

    I have a small problem. I created a sticky widget and it’ll be shown as it should. But on the wrong menu (here: Neuigkeiten), I want it only in the menu “Exeter Journal”. Also the Extra Sidebar to the right is shifted (and only when the sticky widget is activated).

    How can I fix this issue?
    My website: http://florensia-world.de/wordpress/

    Many thanks,

    Konpaku

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author nobita

    (@nobita)

    Hi Konpaku

    What sticky-widget that you have created, or not
    Since I do not know, it’s to answer it is difficult

    I think simply, if you just want to hide the links below to be to add a style rule, and can be hidden.

    I think fundamentally, to be desirable to improve the sticky-widget

    If you need remove below links.

    Kurzgeschichten
    Interviews
    Screenshots

    Add to style.css last line( but not tested )

    .home .menu-exeter-journal-archiv-container{
        display:none;
    }

    Thank you.

    Thread Starter Konpaku

    (@konpaku)

    Hi Nobita,

    actual, it’s not exactly what I’m looking for.

    Right now the sticky-widget will be shown on the mainside “Neuigkeiten”. But I want it only shown (on the side “Exeter Journal”), when I click on “Exeter Journal”.
    I hope you understand what I mean. If not I can try to explain it in japanese (but it isn’t very good).

    Many thanks

    Konpaku

    Theme Author nobita

    (@nobita)

    Thank you for going out to a lack of understanding of English

    Default Sticky widget area shows only home.

    I Think You need to change from ‘home’ to ‘Exeter Journal’

    is OK?

    To do this customization, you must create a Child Theme.

    https://codex.wordpress.org/Child_Themes

    Recipe:

    1. Create holder at wp-content/themes directory
    name:Konpaku
    2. Create style.css at Konpaku holder

    /*
    Theme Name: Konpaku
    Author: Konpaku
    Author URI: http://florensia-world.de/wordpress/
    Version:1.0
    Template:raindrops
    */

    3. Copy raindrops template file , paste at Konpaku holder
    template name
    index.php
    page.php

    4. Create new template part file at at Konpaku holder.

    Template file name : stickywidget.php

    <?php if ( is_page( 'your Exeter Journal page ID'  ) &&  is_active_sidebar( 'sidebar-3' ) ) { // Widget only home ?>
    			<div class="topsidebar">
    				<ul>
    					<?php dynamic_sidebar( 'sidebar-3' );?>
    				</ul>
    			</div>
    			<br class="clear" />
    <?php
    }
    ?>

    5. Code Change index.php, page.php

    index.php

    <?php if ( is_home( ) &&  is_active_sidebar( 'sidebar-3' ) ) { // Widget only home ?>
    			<div class="topsidebar">
    				<ul>
    					<?php dynamic_sidebar( 'sidebar-3' );?>
    				</ul>
    			</div>
    			<br class="clear" />
    <?php
    } // end if ( is_home( ) &&  is_active_sidebar( 'sidebar-3' ) )
    ?>

    change below

    <?php get_template_part( 'stickywidget' ); ?>

    page.php

    Add code

    <div id="yui-main">
      		<div class="yui-b <?php raindrops_add_class( 'yui-b' ); ?>">

    change below

    <div id="yui-main">
      		<div class="yui-b <?php raindrops_add_class( 'yui-b' ); ?>">
    <?php get_template_part( 'stickywidget' ); ?>

    is finish and next

    Open Dashboard / Themes

    Change theme from Raindrops to Konpaku.

    done

    Thank you.

    Theme Author nobita

    (@nobita)

    Two weeks have passed since remained without reply, I will change to Resolved.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Sticky Widget on the wrong menu’ is closed to new replies.