Digital experiences for all disciplines
Forum Replies Created
-
Posted in: We hit Power Elite.
-
Hi Mohammad,
in my localinstalation (WordPress 3.9.1 / DANTE 2.56) work this in the Child Theme
@import url("../dante/style.css");
Is it not better to use the function.php from the child-theme with this:
add_action('wp_head','load_parent_style',0);
function load_parent_style() {
wp_register_style('parent-theme',get_bloginfo('template_directory').'/style.css');
wp_enqueue_style('parent-theme');
}
or it does not matter???
Best Regards
Peterhello jedrek,
I work with child-theme and it works very well – what’s not with you because?
I have added to the function.php in child-theme folder the following:load_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' );
so I do not lose the files in updates
best regards
PeterHi Ed,
can add her an extra shortcode for a general timeline:
my sample page (‘m at Jump to Dante)
It would be awesome!
if their access needs – please tell modestbest regards
PeterHello Melanie,
sorry for the late reply, was little stressful.
Had I found and edited – arpeitet perfect!Nice weekends and greet
Hello Melanie,
where can I edit or change the label of the One-Page-Nav (Hot News, etc.)? I have not found it.Thank you and best regards
PeterHello jon4700,
I’m glad this is my English course – a long time ago when I was learning it.nice if I could help
best regards
peterHi John4700,
in the style.css line – 5202 you found this:
#copyright p { float: left; font-size: 11px; line-height: 24px; margin-bottom: 0; }
you can change it to this:
#copyright p { font-size: 11px; line-height: 24px; margin-bottom: 0; text-align: center; }
to the footer menu align center – you can ad in style.css line 5211 this:
#copyright nav .menu { margin-left: 500px; }
you can do it – remember this is that the fact the footer menu shifts a line under the copyright – see picture notes
best regards
peterHello Dante developers
it is possible to integrate a slightly better and more useful 404 error page – in the appendix I have added the times I used.
best regards
PeterI generally work with Child Theme
first – add this to functions.php and create a 404 menu
// ad 404 Menu for 404 Page register_nav_menu('404_pages', '404 hilfreiche Seiten');
secondly – This is the content of the 404.php
<?php get_header(); ?> <?php $options = get_option('sf_dante_options'); $default_page_heading_bg_alt = $options['default_page_heading_bg_alt']; ?> <div class="row"> <div class="page-heading col-sm-12 clearfix alt-bg <?php echo $default_page_heading_bg_alt; ?>"> <div class="heading-text"> <h1><?php _e("OH NO! - this page was not found!", "swiftframework"); ?></h1> </div> </div> </div> <div class="spb_content_element col-sm-12 spb_text_column"> <div class="spb_wrapper clearfix"> </div> </div> </div> <div class="row"> <div class="spb_content_element col-sm-4 spb_text_column"> <div class="spb_wrapper clearfix"> <div class="error-image"></div> </div> </div> <div class="spb_content_element col-sm-4 spb_text_column"> <div class="spb_wrapper clearfix"></div> <h5 class="m_title"><?php echo __('here are a few helpful links:', 'DANTE'); ?></h5> <p><?php wp_nav_menu(array('theme_location' => '404_pages', 'depth' => 1, 'container' => false, 'menu_id' => '', 'menu_class' => 'list-style1')); ?></p> </div> <div class="spb_content_element col-sm-4 spb_text_column"> <div class="spb_wrapper clearfix"></div> <h5 class="m_title"><?php echo __('search our website', 'Dante'); ?></a></h5> <p><?php echo __('take you quiet a moment and use the search form below!', 'Dante'); ?></p> <form method="get" class="search-form" action="<?php echo home_url(); ?>/"> <input type="text" placeholder="<?php _e("Enter keyword and press the Return key", "swiftframework"); ?>" name="s" /> </form> </div> </div> <div class="row"> <div class="page-heading col-sm-12 clearfix alt-bg"> <div class="heading-text"> <h4 class="m_title"><?php echo __('<span>maybe</span> you try the following information on:', 'Dante'); ?></a></h4> <ul class="sf-list"> <li><i class="ss-navigateright"></i>a requested URL was misspelled (<sf_tooltip link="" direction="top" title="so - again from the beginning and nice slowly"><code>Tippfehler</code></sf_tooltip>) and thus led to error 404 response from the server, since nothing was found;</li> <li><i class="ss-navigateright"></i><sf_tooltip link="" direction="top" title="The must sometimes be!"><code>Maintenance</code></sf_tooltip> on the server, then the requested file is temporarily unavailable – please come back later (save as a favorite);</li> <li><i class="ss-navigateright"></i>perhaps the file was there – you do not; now you are there and the file does not</li> <li><i class="ss-navigateright"></i>the file that was accessed, is renamed – been moved or deleted</li></ul> <div class="row"> <div class="page-heading col-sm-12 clearfix alt-bg"> <div class="heading-text"> <h4 class="m_title"><?php echo __('to the information sought attempt to find <span>you can:</span>', 'Dante'); ?></a></h4> <ul class="sf-list"> <li><i class="ss-pointright"></i><a href="kontakt"><span><?php _e("<code>Kontakt</code>", "swiftframework"); ?></span></a> take with us and request the missing file.</li> <li><i class="ss-pointright"></i>one page <a href="javascript:history.go(-1)"><span><?php _e("<code>one page back</code>", "swiftframework"); ?></span></a> go and browse through the main menu,</li> <li><i class="ss-pointright"></i>again to <a href="homepage"><span><?php _e("<code>Homepage</code>", "swiftframework"); ?></span></a> change</li> <li><i class="ss-pointright"></i>our <a href="sitemap"><span><?php _e("<code>Sitemap</code>", "swiftframework"); ?></span></a> search</li></ul> </div> </div> </div> </div> </div> <!--// WordPress Hook //--> <?php get_footer(); ?>
thirdly – a little bit Styling
.error-image { background: url("errorimage.png") repeat scroll 0 0 rgba(0, 0, 0, 0); height: 194px; margin-top: 4px; width: 311px; } .m_title { color: #04477A; font-size: 20px; line-height: 1.4; }
Last but not least – it would be good to disable the Promo Bar on this page with
.page-id-9888 #base-promo { display: none; }
it´s working good with page-id but not on this error page
Best Regards
Peterhello berliner1984,
myself have just a footer styled – annexed a picture of it and here the css:
/* Hintergundbild für copyright einfügen und stylen */ #copyright { background: url("../dante-child/footer2-familie.png") no-repeat center center rgba(0, 0, 0, 0); height: 111px; border-top: 1px solid transparent; } #copyright a { color: #DE9638; } #copyright a:hover { color: #3292BB !important; } /* Verschiebung copyright p unter das Bild */ #copyright p { line-height: 154px; }
best regards
Hello Petercity,
when you install the envato WordPress Toolkit first and fill out your Username and API Key –
this errormessage has dissappeard.Best Regards
PeterSorry,
had not yet at my brain – but now to be found in the appendix!
A warm greetings
PeterThanks – I`m waiting this Update!
Best regards!
PeterHello Supporter,
give me a way to upload this files – please!
Best Regards!
PeterHello the year,
annexed the de_DE.mo and de_DE.po files – if have some errors or ambiguous translations do not match – please note me back Thanks in advance!
to all: Happy new year!
Peter
-
Posted in: We hit Power Elite.