Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter ganzir

    (@ganzir)

    Thank you, that did the trick.

    Thread Starter ganzir

    (@ganzir)

    The Links are shown, but you cannot klick them, the cursor does not transform into this little finger.

    However, links shown in the menu on the left are working as they should, therefor I digest, that it has something to do with the way, these links are generated.

    If you want to take the time an install Safari, you can check it out for yourself.

    The URL is: https://www.dgs2012.de

    I am talking about the linke above the header image, which are aligned in a horizontal line, near the top of the screen.

    I just checked … Opera displays the same behavior.

    …same for chrome.

    … I have done a little testing, an it seems wp_list_pages is not resonsible for this.

    Even if I reduce the code to:

    <div id="navmenu">
    <ul>
     <li><a href="https://www.dgs2012.de/programm/programm-uebersicht">Programm</a></li>
    </ul>
    </div>

    This one link is not working either

    Thread Starter ganzir

    (@ganzir)

    I tried that … it has nothing to do with plug-ins.

    I think it may have something to do with changing the header.

    You see I am new to wordpress, new to php and on top of it all the new admin of a wordpress site.

    Thing is, the page am working on has a theme that was specifcally coded for this very site. This theme now has to be modified.

    Problem, someone made a menubar above the header image with the following code:

    <ul>
    <?php
    foreach ($GLOBALS['dgsmain']->rootPages as $name=>$page) {
    	if (!$GLOBALS['dgsmain']->isMainMenuItem($page->post_name))
    		continue;
    	$_img = get_theme_root_uri() . '/dgs/images/main/_'.$page->post_name . '.gif';
    	$img = get_theme_root_uri() . '/dgs/images/main/'.$page->post_name . '.gif';
    
    	$link = $GLOBALS['dgsmain']->getPageLink($page->ID);
    
    	$item = '	<li id="' . $page->post_name .
    	'"><a href="' . $link . '"><img class="{src: \''.$_img.'\'}"  src="'.$img.
    	'" alt="' .$page->post_title . '"/></a></li>';
    	echo ($item);
    }
    ?>
    	</ul>

    I do not know what this code exactly does, I only know the results and the result is, a menubar on top, which consists of images, those images are containing the names of the pages they belong to.

    If you change a page you have to design a new image …. pretty stupid I think.

    Therefor I replaced the code with this here:

    <div id="navmenu">
    <ul>
     <li><a href="<?php echo get_settings('home'); ?>">START</a></li>
    <?php $arguments = array('depth' => '1', 'title_li' => '', 'exclude' => '269,90');
    wp_list_pages($arguments); ?>
    </ul>
    </div>

    Result looks similar, only now the links change when the pages are changing and one does not need images anymore.

    One of the buttons/links I replaced contained a schedule an this schedule now is broken, I guess something the old code generated now is gone…. and therefor it does not work anymore.

    Should you or anybody else be willing to offer further assistance it would be appreaciated.

    Thread Starter ganzir

    (@ganzir)

    Nevermind …. i figured it out … I somewhat misplaced the code within the header.php… now it is working.

    Thread Starter ganzir

    (@ganzir)

    Can you a bit more specific, I am not a coder at all, so I have this code

    <div id="navmenu">
    <ul>
    	<li><a href="<?php echo get_settings('home'); ?>">HOME</a></li>
    	<li><a href="wordpress/recipes/">RECIPES</a></li>
    	<li><a href="wordpress/travel/">TRAVEL</a></li>
    	<li><a href="https://www.www.ads-software.com">WORDPRESS</a></li>
    </ul>
    </div>

    in the header.php.

    What do you want me to do with it?

    Thread Starter ganzir

    (@ganzir)

    Thank you,

    I tried this one.

    <?php wp_list_pages(‘title_li=&depth=1’); ?>

    for some reasion it did not work (may be a typo … dont know)

    Thats why I posted.

    Thread Starter ganzir

    (@ganzir)

    You were right, it had to do with the theme.

    When renaming the theme folder, I can log into the dashboard.

    However I need this “old” theme.

    The Behavior is currently als follows.

    Unable to login with the old theme, renaming the theme and then login in and then reaktivating the theme works until the next login.

    Now that I am able to access the dashboard, is the a possibility to pin point what is causing the problems and to fix them?

    Btw. Big Thanks for all the answers so far, your help is invaluable.

    EDIT:

    I was able to fix this myself …. as I mentioned in my first post, I am/was trying to clone an old blog into a new one, the new one was using the same theme, at least that is what the theme-menu tells me. I reuploaded the theme from the new blog and now everything works.

    Thanks I again, I do not even dare to think about how much work it would have been to rebuild the old blog from scratch, just to apply minimals changes.

    Thread Starter ganzir

    (@ganzir)

    How do I switch themes without access to the admin dashboard?

    Thread Starter ganzir

    (@ganzir)

    Hello,

    I am having access to the database.

    Since I did not want to break anything I followed the tutorial to clone wp manually, which can be found here

    https://www.ryantmalone.com/tips-and-tricks/how-to-clone-a-wordpress-blog/

    since I do not know the password from the old admin I ran the emergency script to reset my password.

    Thereafter I still encountered a fatal error issue, I googled it and was told to do a manual upgrade of the wp-installation (which I did)

    Now it looks like I really cloned the page I visible under the new url.

    However I am unable to lock into the admin dashboard I am getting these errors:

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/21/d126881644/htdocs/2012/wp-content/themes/dgs/functions.php:1) in /homepages/21/d126881644/htdocs/2012/wp-login.php on line 353
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/21/d126881644/htdocs/2012/wp-content/themes/dgs/functions.php:1) in /homepages/21/d126881644/htdocs/2012/wp-login.php on line 365
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/21/d126881644/htdocs/2012/wp-content/themes/dgs/functions.php:1) in /homepages/21/d126881644/htdocs/2012/wp-includes/pluggable.php on line 737
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/21/d126881644/htdocs/2012/wp-content/themes/dgs/functions.php:1) in /homepages/21/d126881644/htdocs/2012/wp-includes/pluggable.php on line 738
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/21/d126881644/htdocs/2012/wp-content/themes/dgs/functions.php:1) in /homepages/21/d126881644/htdocs/2012/wp-includes/pluggable.php on line 739
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/21/d126881644/htdocs/2012/wp-content/themes/dgs/functions.php:1) in /homepages/21/d126881644/htdocs/2012/wp-includes/pluggable.php on line 934

    Now befor you beat me blue …. I looked for spaces and additional lines … I can find none.

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