Forum Replies Created
-
Author
-
PatagoniaParticipant
Thanks for your reply. It did not work in this specific case, but that is a very useful solution to keep in mind for other template changes.
September 25, 2017 at 21:45 in reply to: Header background image per category, body class outputs #174749PatagoniaParticipantThanks! That works fine, much appreciated.
September 22, 2017 at 17:04 in reply to: Header background image per category, body class outputs #174396PatagoniaParticipantPS: I wasn’t sure how to call the category as body class output, but did try two variations to get the top-parent ID. I added these variations to the theme’s functions.php
COPY CODE/* Get the Page Slug to Use as a Body Class, this will only return a value on pages! */ $class = ''; /* is it a page */ if( is_page() ) { global $post; /* Get an array of Ancestors and Parents if they exist */ $parents = get_post_ancestors( $post->ID ); /* Get the top Level page->ID count base 1, array base 0 so -1 */ $id = ($parents) ? $parents[count($parents)-1]: $post->ID; /* Get the parent and set the $class with the page slug (post_name) */ $parent = get_post( $id ); $class = $parent->post_name; }
(from WordPress codex, this didn’t work)
And I tried
COPY CODEadd_filter( 'body_class', 'dc_parent_body_class' ); function dc_parent_body_class( $classes ) { if( is_page() ) { $parents = get_post_ancestors( get_the_ID() ); $id = ($parents) ? $parents[count($parents)-1]: get_the_ID(); if ($id) { $classes[] = 'top-parent-' . $id; } else { $classes[] = 'top-parent-' . get_the_ID(); } } return $classes; }
Which also did not work. Neither did add the top-parent ID, not sure why not as your code does output all kinds of body classes?
PatagoniaParticipantSorry, I never saw you answered me.
I am not sure how to explain it better: Is there a way to have it minimized, like on the normal menu? So when you scroll down, the logo gets smaller.Under theme options -> header options this is called “Resize logo on scroll* – Enable or disable logo resizing when scrolling down the page”, which is enabled by default and ysed widely.
But it does not work on mobile while exactly on mobile you need the extra space it creates.Thanks in advance.
PatagoniaParticipantFor me it works in the stylesheet as well.
Is there a way to have it minimized, like on the normal menu? So when you scroll down, the logo gets smaller etc.Cheers.
PatagoniaParticipantCould this be made into a theme option?
Especially for mobile a (minimized) sticky menu is very usable.Thanks in advance.
PatagoniaParticipantSorry, your code did work, when posted in functions.php
I noticed that the form is defined in lib/themefunctions.php
However, it does not show the refferring page, i.e. from which page the form was sent from, as per the original request (and mine) above. How/where could we add this?
Thanks in advance.
PatagoniaParticipantHi, I was just looking for this, especially as I want to know from which page the form was submitted.
I added the code above (tried both version), to my child theme’s functions.php but see no difference, just the standard form. Does this code still work with Kleo 4? Where is the contact form defined as it is not in the main Kleo theme’s functions.php?
Thanks!
PatagoniaParticipantPatagoniaParticipantThank you @abe. Note that the changes in itself did not fix it, I had to change all Headings and Body fonts to some other font first, save changes and then back again to Trebuchet, save changes again before they actually changed.
Cheers.
PatagoniaParticipantThis is Trebuchet and how it looked before:
Attachments:
You must be logged in to view attached files.PatagoniaParticipantHey Sharmstr, thanks for your swift reply.
The example you posted has the same problem: it is not Trebuchet MS, but some other -serif- font (Trebuchet , Helvetica ans sans serif are all, well, sans serif 🙂
PatagoniaParticipant@romanzy, did you figure this out?
@Sharmstr, I have a similar question, which I think does involve KLEO:For ‘basic’ memmbers the Kleo Facebook registration should be enough, quick and painless. But for other member types I want them to fill out more field (either at registration or later).
– Is there a way to differentiate this at sign-up, based on user role (they can choose themselves)?
– is there a way to remind people/roles to complete (parts of) their profile, for exampl if they only signed up with FB?Welcome any input you might have, thanks.
CheersPatagoniaParticipantAh, ok, yes that might work. I am ok with making more templates, but the problem is I want to edit the part that is not covered by the templates. There is no template that goes between general-before-wrap & general-after-wrap I think.
So the only choice is to make a complete new page type like content-edited.php in the child theme root, and a real new template which then calls
get_template_part( 'content', 'edited' );
which calls new page parts. Just seems a bit impractical and was a big puzzle for me.This also mean I cannot set this as a default template as far as I can see.
PatagoniaParticipantAh, now I do see the featured image, though very small and it does not link to anything. Still I would like to see it limited to x words/characters, for the widget etc.
Thanks!
PatagoniaParticipantThank you, I tried VC and could edit some basics, but did not find a way to answer these questions:
– with or without featured image (all are without, vc offers no image option? Where does the featured image go?)
– Display first xx characters/words only (or excerpt, but there is no excerpt field in the editor), with a link to the full testimonials or a specific page?Thanks!
PatagoniaParticipantWhy can’t you use !bp_is_blog_page()?
I don’t know because I do not know what you mean with that 🙂
PatagoniaParticipantHi Laura,
no, what I want to do is make a page template with some extra code within the loop (underneath the featured image).
It seems that the only way to do this is to make a whole new page type, as the page templates do not cover the main part; if I change content-page.php, then all pages (including the mentioned BP ones) have the change, which is what I don’t want.
So now I have solved it by creating a new template which calls a new content type: content-edited-page.php, not sure if this is the way to go. Just a bit different code should not warrant a new content-type?
Cheers
PatagoniaParticipantI am getting different errors when updating to 3.01 on Xampp/localhost:
COPY CODEUpdating Theme Kleo (1/1) Downloading update from https://s3.amazonaws.com/marketplace-downloads.envato.com/files/137970596/kleo.zip?AWSAccessKeyId=AKIAJYG5ROGJ6X7Z3M6Q&Expires=1434488463&Signature=0P%2FF1vK9pngNA%2Fv1Yn2wBZjEum0%3D&response-content-disposition=attachment%3B+filename%3Dthemeforest-6776630-kleo-next-level-wordpress-theme-wordpress_theme.zip… Warning: touch(): Unable to create file C:\Users\Harry\AppData\Local\Temp/kleo.zipAWSAccessKeyIdAKIAJYG5ROGJ6X7Z3M6QExpires1434488463Signature0P%2FF1vK9pngNA%2Fv1Yn2wBZjEum0%3Dresponse-content-dispositionattachment%3B-filename%3Dthemeforest-6776630-kleo-next-level-wordpress-theme-wordpress_theme.tmp because Invalid argument in E:\XAMPP\htdocs\site\wp-admin\includes\file.php on line 164 Warning: unlink(C:\Users\me\AppData\Local\Temp/kleo.zipAWSAccessKeyIdAKWIAJG5ROGJ6X7Z3M6QExpires1434488463Signature0P#3FF1vKartgNA%2Fv1Yn2wBZjEum0%3Dresponse-content-dispositionattachment%3B-filename%3Dthemeforest-6776630-kleo-next-level-wordpress-theme-wordpress_theme.tmp): Invalid argument in E:\XAMPP\htdocs\site\wp-admin\includes\file.php on line 464 An error occurred while updating Kleo: Download failed. Could not open handle for fopen() to C:\Users\me\AppData\Local\Temp/kleo.zipAWSAccessKeyIDAKWIAJG5ROGJ6X7Z3M6QExpires1434488463Signature0P#3FF1vKartgNA%2Fv1Yn2wBZjEum0%3Dresponse-content-dispositionattachment%3B-filename%3Dthemeforest-6776630-kleo-next-level-wordpress-theme-wordpress_theme.tmp Disabling Maintenance mode…
I have fopen ‘on’ in php.ini.
Cheers, Harry
PatagoniaParticipant+ some more options needed:
– Display first xx characters/words only (or excerpt, but there is no excerpt field in the editor), with a link to the full testimonials or a specific page?
– A page with x testimonials, limited by tags etc.
Thanks!
PatagoniaParticipantThanks; Yes, that seems to work with the KLEO widget (only), though the BBpress widget is more useful as it does not show the date for the topics.
PatagoniaParticipantScrap the previous post: the side effect does exist as described, the correct version was still cached, but clearing the caches creates the problem on all pages.
PatagoniaParticipantStrangely enough this side-effect seems to have been temporarily (?). It’s ok now, maybe a cache-ing issue.
PatagoniaParticipantHmm, it does have a strange unwanted side effect: in both the latest posts widget (Kleo Latest post, with “post type =post” defined), as well as in the bb-press latest post widget, the latest pages now appear instead of blog posts and forum posts…
PatagoniaParticipantThank you very much, Sharmstr, that fixed it for now. Please make a reminder/trac or something for Abe. so I don’t have to change it after every update 🙂
PatagoniaParticipantThanks for looking into this. Yes, it’s 2.3 now, so not sure if the problem was introduced with 2.2 or 2.3.
PatagoniaParticipantThank you sharmstr. Though your first link mentions it was a theme issue, the 2nd link pointed me to this plugin:
https://wordpress.org/plugins/disable-google-fonts/Which seems to take care of it.
You might want to apply for the 7thqueen job openings 🙂
Cheers.PatagoniaParticipantIt is not public yet, but here is the section of the source that is loading it, with the previous and next stylesheet:
‘
rel=”alternate” type=”application/rss+xml” title=”Website » Forums Feed” href=”http://7summits.ws/forums/feed/” /><link
rel=’stylesheet’ id=’open-sans-css’ href=’//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.0′ type=’text/css’ media=’all’ /><link
rel=’stylesheet’ id=’dashicons-css’ href=’http://website.com/wp-includes/css/dashicons.min.css?ver=4.0′ type=’text/css’ media=’all’ /><link>’(I changed the website URL/title above).
PatagoniaParticipantThanks for your reply. I have admin bar (and RT Media) on all pages, but it only loads on KLEO pages that have BBpress enabled (I use the plugin manager plugin, that lets me disable plugins selectively).
The CSS that comes with BBpress does not include the Google fonts reference, so it must be in the KLEO CSS.
Thanks.
PatagoniaParticipantHi there,
I am updated to the latest KLEO version, use no Google fonts, but still there is a reference somewhere:
‘@import “//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,700”;’It is not needed, lowers page rank/score and gives a 404.
Can you take this out in teh next update and let me know where to find it, so I can remove it for now?
Thanks!
PatagoniaParticipantNever mind, it does not seem to be a KLEO-specific problem as when activating another theme, the problem remains. Will keep on searching elsewhere.
PatagoniaParticipantps: ignore the part of the w=150 addition, that is created by the Bj-lazyload plugin. But even with that switched off, it still uses the 300px non-square version and the problem remains.
PatagoniaParticipantI noticed that the problem lies in this part of kleo/functions.php:
COPY CODE/* This theme uses a custom image size for featured images, displayed on "standard" posts. */ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 672, 9999 ); // Unlimited height, soft crop add_image_size( 'kleo-full-width', 1038, 583 );
If I change the last line to 900,999, then the 900pxx version is used.
Of course I should not edit the Kleo/functions.php, can I just add the above function to the child’s functions.php? Or just the last line?
Thanks
PatagoniaParticipantHi, coming back to this with a related request:
I have prepared images to be used as featured images, they are exactly 900px wide. I changed my theme/css so that the featured image/container is this width as well.
However, after selecting one of these images, a smaller version (that I did not define, for example 769px wide) is selected which is upscaled, which degrades the image quality. If I delete that version, no image is shown, so KLEO is looking for a smaller version, it does not pick a larger version.
How can I be sure that the full-size version / 900px version is being used as the featured image? Of course I want to use smaller versions for the masonry etc.
Thanks in advance!
PatagoniaParticipantFixed it. It seems that somehow the option to use RT media’s layout was switched off in
/wp-admin/admin.php?page=rtmedia-settings#rtmedia-custom-css-settingsWhen I switched that on, the problems went away..
PatagoniaParticipantThis did not work for me, not only is the lightbox similarly unstyled (and it has no closing button, only ESC closes it), but also the album lists, images etc.:
1 The options/upload buttons are behind the upload container (which is always visible) when in initial media mode.
2 When in Album mode, the list is vertical and with a list-style dot. Options button is now visible, but clicking results in something appearing to the left of the container.See screenshot for 1 & 2.
It’s still on a dev server, so I cannot give a login at this point.
ps: I switched BWP minify off for this page, but no change.Thanks in advance
Attachments:
You must be logged in to view attached files. -
AuthorPosts