Forum Replies Created
-
AuthorPosts
-
cyanoorange
ParticipantDear Victor,
thanks a lot!
I was kind of stupid :/ . Sorry for that. I tried the wrong css statement. Now its working with this, just for anybody who has a dumb day too.First step in functions.php
(to upload svg in the mediacenter)add_filter( 'upload_mimes', 'svg_upload_mediathek' ); function svg_upload_mediathek ( $svg_mime ){ $svg_mime['svg'] = 'image/svg+xml'; return $svg_mime; }
style.css in workstation Por Theme
.header-image .site-title a { background: rgba(0, 0, 0, 0) url("http://127.0.0.1/test/wp-content/uploads/2016/04/mylogo.svg") no-repeat scroll 0 0 !important; }
cyanoorange
ParticipantHi Victor,
thanks for answering. No this doesnt work. I have the svg in the media library but if I add the loge in the Cutomize Area I get an error with the cropping screen.cyanoorange
ParticipantThanks, I will check it out!
cyanoorange
ParticipantFebruary 13, 2016 at 2:02 pm in reply to: posts sorted with custom fields – pagination and infinite scroll #178983cyanoorange
ParticipantI opened a more structured threat to solve the problem and it looks like, that I have found the answer ...
http://www.studiopress.community/topic/posts-sorted-with-custom-fields-pagination-problem/
@admin: you can delete this threat, if its to confusing this was. thanx.February 13, 2016 at 5:51 am in reply to: posts sorted with custom fields – pagination problem #178955cyanoorange
ParticipantI found a solution - the "custom-loop-hint" was important. Thanks for that.
My solution now is to change the whole loop. But I have the feeling, that this might be not a "best-way-to-do-it" solution. My script now makes the following things possible: Sort post with custom field, sort them via click ASC and DSCN, showing pages.
Would be great if anybody could give me feedback.
Here is the important part of the functions.phpremove_action( 'genesis_loop', 'genesis_do_loop' ); remove_action( 'genesis_loop', 'prefix_do_loop' ); add_action('genesis_loop','sortierung_Kosmo'); function sortierung_Kosmo(){ /*checkt ob es per Klick auf link eine Aktion gab*/ $aktion = filter_input(INPUT_GET, 'aktion', FILTER_SANITIZE_STRING); /*alte posts zuerst*/ if($aktion!=2 && is_home()){ $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1; $args = array( 'paged' => $paged, 'posts_per_page' => 5, 'meta_key' => 'kosmo_sortier_nr', // 'meta_compare' => '<=', 'meta_value_nr' => '', 'orderby' => 'meta_value', 'order' => 'ASC' ); genesis_custom_loop( $args ); /*neue posts zuerst*/ }else if($aktion==2 && is_home()){ $paged = ( get_query_var( 'paged' ) ) ? absint( get_query_var( 'paged' ) ) : 1; $args = array( 'paged' => $paged, 'posts_per_page' => 5, 'meta_key' => 'kosmo_sortier_nr', 'meta_value_nr' => '', 'orderby' => 'meta_value', 'order' => 'DSCN' ); genesis_custom_loop( $args ); }else{ if ( is_page_template( 'page_blog.php' ) ) { $include = genesis_get_option( 'blog_cat' ); $exclude = genesis_get_option( 'blog_cat_exclude' ) ? explode( ',', str_replace( ' ', '', genesis_get_option( 'blog_cat_exclude' ) ) ) : ''; $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; //* Easter Egg $query_args = wp_parse_args( genesis_get_custom_field( 'query_args' ), array( 'cat' => $include, 'category__not_in' => $exclude, 'showposts' => genesis_get_option( 'blog_cat_num' ), 'paged' => $paged, ) ); genesis_custom_loop( $query_args ); } else { genesis_standard_loop(); } } }
February 12, 2016 at 10:55 am in reply to: posts sorted with custom fields – pagination problem #178905cyanoorange
ParticipantFirst of all: thanks for trying to help. I changed the code, but it doesnt work. You can see the result right now on the site.
Would be great, if you would have another idea.February 1, 2016 at 9:33 am in reply to: posts sorted with custom fields – pagination and infinite scroll #178060cyanoorange
ParticipantPS: This site works with the genesis-sample theme and wp- Version 4.4.1
cyanoorange
ParticipantHello Dave,
thanks for your time and effort.
If there woudnt be a mouse, I could totally live with the solution of the plugin. But, with the mouse in use, its quite awfull.
Thanks for your thoughts - right now, I have not the right idear, but I will try to figure it out. Its too close, because the plugin-mechanism works really fine with the keyboard, I just have to find a way to explain when to change the left-property.cyanoorange
ParticipantMy next idear. I tried to find the code for the tab-navigation in the genesis-dropdown plugin.
Now i know what causes the problem.
There are two files which are important. The js and the css-file..menu .menu-item:focus { position: static; } .menu .menu-item > a:focus + ul.sub-menu, .menu .menu-item.wpacc-hover > ul.sub-menu { left: auto; opacity: 1; }
The left:auto, causes the problems, with the rollover navigation via mouse. There you need to have left:50%.
I think the easiest way could be, that you can distinct between tab and mouse- so the left-property only changes if you really use the tab-key.
The js. file does the following:
( function($) { $('.menu li').hover( function(){$(this).addClass("wpacc-hover");}, function(){$(this).delay('250').removeClass("wpacc-hover");} ); $('.menu li a').on('focus blur', function(){$(this).parents(".menu-item").toggleClass("wpacc-hover");} ); } (jQuery) );
Right now, I havent found the solution, how to adapt it. Anybody an idea? Would be great.
cyanoorange
ParticipantHallo,
I have tried this, how I said in my first post:Genesis Accessible Dropdown Menu Plugin-> it shows the submenus but the whole navigation gets replaced in a bad way
Means: all subemenu elements are shifted to the left.
Thanks fürs mitüberlegen
Nicolecyanoorange
ParticipantNow I tried the WP Accessible Plugin, but it has no effect to the navigation via keyboard with the daily dish menu 🙁
cyanoorange
ParticipantSorry Dave,
I was too fast. Now I understand. I try the other plugin and see what happens.
Nicolecyanoorange
ParticipantHi Dave,
yes - this is the one I have tried -> Genesis Accessible.
And it shows all the effects I described above.
Nicolecyanoorange
ParticipantHallo Dave,
thanks for your quick response. But like I wrote, I tried the Genesis Accessible Plugin and it doesent work with this navigation. In some browsers e.g firefox the behaviour is like my description in the first post. In other browsers e.g. IE the submenu ist not on the right place (not only when using the keys but when using the mouse too).
Grüße
Nicolecyanoorange
ParticipantHi Ginger,
its still something I am trying to solve, but right now I cant give a link, because this site is not online right now (just on a local server).
Just to try it in other words:
I would like to have a back button on my comments site, which should bring the user back to the place where he was before he was entering the comments section. Therefore its not enough to make a normal "back button", because if the user has entered a comment on the comment site (and was not only reading the comments) the site history changes and the back button would send you to the comment site again, cause that was the last refreshment.
Thats why I need to "remember" where the user came from. Means, when they click at the "go to comments" - Button, it woud be great to save the sites url and to call it, if the user wants to get back.But you are right, I should ask the question again, when I can show what I mean.
cyanoorange
ParticipantYou insert your images with a mediaslider. Different possibilities to solve the problem:
You specify the size of the images in the slideshow settings
If you just want to show one image, you can insert it from the mediathek as a image and specifiy the size.
You can modify css, with a specifc width instead of 100%:
.fusion-flexslider .slides img{
width: 300px
}
If you do this, all slideshow images appear in this size. If you would like to have different sizes you have to be more specific in css or use the methods I mentioned before. If you just make the images smaller with css, the user has to load the big image sizes - for mobile devices its not goodcyanoorange
ParticipantUhuhuuu ... delete the whole thing.
I forgot to define the hierachy in the page settings - only changed the menu settings.
Sorry ... I think its time for me to take a break and get my brain a little oxygen ... arrrghcyanoorange
Participantjust to explain it a little bit better:
menu hierachieHome
-- Parent
---- Child 1
---- Child 2If I click on "Child 1" the following breadcrump appears:
Home / Child 1
But I want to see:
Home /Parent /Child 1
How do I get this?
Would be great if someone would have an ideacyanoorange
ParticipantGreat, that it worked for you. Right now the page I am working on is just locally installed. I can post it, if its online.
Best wishes -
AuthorPosts