Forum Replies Created
-
AuthorPosts
-
joycegraceParticipantjoycegraceParticipant
It would help to see your site to help with this.
It would also help to know which instructions you followed and where things went wrong in the Studiopress instructions for Monochrome Pro.
I'm assuming you've solved this already, however, given how long it's been.
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantAre you sure this is a genesis site?
If so, can you confirm you followed all instructions given in the studiopress member area for Monochrome pro?
Find me at Joyce Grace (http://www.joycegrace.ca)
April 23, 2022 at 5:16 pm in reply to: Apply Monochrome single.php to singular.php – all post types #505091joycegraceParticipantI had a bit of a revelation that the single.php code applies to full-width templates and that's why it wasn't working on the content-sidebar page that I was testing it on... having one of those moments...
Find me at Joyce Grace (http://www.joycegrace.ca)
April 23, 2022 at 3:39 pm in reply to: Apply Monochrome single.php to singular.php – all post types #505090joycegraceParticipantThan you Victor, but this is not for custom post types. This is for the native Pages in WordPress. I'm trying to get the native Pages to use the same layout as the native Posts, based on the single.php file in Monochrome Pro. It is not doing that, even if I copy the code from single.php into page.php.
Also not sure if you had a look at the link I provided, but my understanding of what it says it that any post type can use singular.php:
"WordPress Version 4.3 added singular.php that comes in the hierarchy after single.php for posts, page.php for pages, and the variations of each. This template follows the rules of is_singular() and is used for a single post, regardless of post type. Themes that used the same code for both of those files (or included one in the other) can now simplify down to the one template."
So I'm hoping I can just use one file, as it says above, instead of creating custom post type templates, single.php templates, page.php templates and so on.
Let me know if I read that wrong...
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantOk for now I think I found the problem, but it may still require more testing.
The fix was to add
overflow-x: hidden;
On the following class:
.site-container
This may have worked on my theme because it has the 'fade up' effect. It is a newer Genesis theme.
Actually I used
.pa_sh .site-container, .rtl .site-container { overflow-x: hidden;
--->your class name will be different if you have a different language code set up based on the solution above of adding a body class!
This line of CSS hides the overflow only on the RTL and Shahmuki pages, but keeps the theme intact per usual, for the LTR languages, juuuust in case.
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantI'm curious if this would work with a body class only?
I found on the WPML forums that they have a Custom RTL language plugin as well as advice to use this code in functions.php to set up a body class with the language code (since the whole site is not meant to be RTL, just one of the translations is)
// add lang code in body class
function wpml_lang_body_class($classes) {
$classes[] = ICL_LANGUAGE_CODE;return $classes;
}
add_filter('body_class','wpml_lang_body_class');I have set up CSS rules in the 'regular' style.css for the theme (and the style-front.css) for .pa_sh and .rtl classes (for the Shahmukhi script to write the Punjabi language). I used this guide:
And this:
https://codex.wordpress.org/Right-to-Left_Language_SupportIt all appears fine without the rtl.css file (using only a body class), EXCEPT that when using Inspect Element on Chrome, or on mobile, especially which switching orientations from portrait to landscape (or visa versa), there is a HUGE blank area to the left. It is so big that the site appears blank. It is not obvious at all that a user has to scroll, and scroll, and scroll to the right to see the site.
Sometimes this 'gap' on the left is smaller than at other times.
I haven't been able to trace a pattern for the size of the gap. It changes a lot - sometimes it doesn't happen, sometimes it's a small version of the screen...
I left WPML this ticket: https://wpml.org/forums/topic/rtl-blank-space-when-screen-size-changes-or-using-inspect-element-in-chrome/
Most of my searches seem to point to a problem with the theme. But I can not pinpoint the issue. I'm using Infinity Pro.
This did not work:
https://wpml.org/forums/topic/when-switching-language-from-english-to-farsi-page-width-increases-dramatically/Does anyone have any ideas?
Is creating a whole separate rtl.css file completely necessary?
What would normally create this huge gap on special screen sizes or when changing the screen size, after loading the page when it appears properly?
Note: I am NOT trying to translate the theme, or anything in the back end of WP dashboard at this point, so this would not apply, I guess?: https://studiopress.community/topic/is-there-any-guide-to-understand-how-to-translate-genesis-themes-and-plugins/
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantHi, what do you mean by "the section squared up or lined through the page"?
Do you have a screenshot?
If you want a smooth scroll you'll need to get some javascript working for you. Perhaps a plugin can do this. Though, I'm sure some Genesis Themes have built-in code you can copy over to achieve that too.
If you are saying the 'jump to' goes down further than where the #abc clicks, my usual trick is to just place it a bit higher in the code.
Find me at Joyce Grace (http://www.joycegrace.ca)
February 12, 2017 at 7:50 pm in reply to: Only load Genesis Responsive Slider resources on pages that use them #201026joycegraceParticipantHi again, I have a question for troubleshooting. When I try your original code on a couple sites, it works fine.
But on a third site, I get this error: Parse error: syntax error, unexpected T_FUNCTION in /home/content/87/8254487/html/wp-content/themes/workstation-pro/functions.php on line 347
And it references this line of your code:
add_action( 'wp_print_styles', function() {
Or if I take out the code for removing styles, and just leave the one for removing the script, I get the same error on this line:
add_action( 'wp_print_scripts', function() {
Do you know why?
Find me at Joyce Grace (http://www.joycegrace.ca)
January 13, 2017 at 8:14 pm in reply to: Only load Genesis Responsive Slider resources on pages that use them #199355joycegraceParticipantJanuary 13, 2017 at 12:16 am in reply to: Only load Genesis Responsive Slider resources on pages that use them #199315joycegraceParticipantHi Sridhar, thank you so much for your help.
However, this does not seem to work for me. I also tried
is_home()
andif ( is_front_page() && is_home() )
from conditional tags instructions.When I view the source of a page that does not have the slider on it, I see this:
<style type="text/css">.slide-excerpt { width: 0%; } .slide-excerpt { bottom: 0; } .slide-excerpt { right: 0; } .flexslider { max-width: 1080px; max-height: 330px; } .slide-image { max-height: 330px; }</style>
And this
<script type='text/javascript'>jQuery(document).ready(function($) {$(".flexslider").flexslider({controlsContainer: "#genesis-responsive-slider",animation: "slide",directionNav: 1,controlNav: 0,animationDuration: 2000,slideshowSpeed: 8000 }); });</script>
I also tried an icognito window and cleared cache from using Autoptimize (and unchecked to optimize css and js in those plugin settings).
Am I doing something wrong?
E.g. view-source:http://www.executivesuite.ca/hot-desks-hourly-boardroom-vancouver/
Your code is currently in my functions.php file on the above site.
Same conversation happening here: https://wordpress.org/support/topic/only-load-genesis-responsive-slider-resources-on-pages-that-use-them/#post-8649561
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantHello Brad and Brett,
Brad, sorry if I came off the wrong way.
Brett, this is mostly what I wanted to find out. Thanks for your input.
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantBrad, it would be really helpful if you could carefully read these forum posts before responding. I already mentioned in my original post that I've seen this plugin and it's not what I want. I even linked to it. I also already made it clear what I am looking for, by giving examples.
Now it can look like my question is answered, when it's not. And that's frustrating, because it's rare anyone else will reply once a post is shown as having a reply, in my experience.
This has happened on almost every post I post here.
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipanti think you could organize these into navigation categories like, 2015 themes, or third-party themes, and so on so people could then drill down to start discussing the theme they want to get help with.
If search were improved, this may be easier, but I also would agree that dividing the forum up into more specific discussions on particular themes, like it was back in the day, would be helpful.
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantA friend also gave me this: https://www.godaddy.com/garage/webpro/wordpress/3-ways-to-insert-javascript-into-wordpress-pages-or-posts/
I'll have to take a look at options.
If anyone else has possible ideas or solutions please do pass them on.
Find me at Joyce Grace (http://www.joycegrace.ca)
joycegraceParticipantHi Brad,
thanks for the quick response. As I mentioned and explained in detail above, the scripts box doesn't execute in the right place. It goes in the header, whereas I need this code to go in the body tag. That's the reason for this entire post.The other problem is that I'm not a coder, so this is kind of hard for me to figure out. Do you think you could provide some copy-paste code to help me out here?
Could you also help me apply the code to use different scripts on different pages?
Find me at Joyce Grace (http://www.joycegrace.ca)
April 7, 2016 at 2:10 am in reply to: Using enqueue script for Google Analytics autotrack.js #183102joycegraceParticipantIt seems to add the script, but shouldn't this use wp_enqueue? Just curious. Sorry if it's a dumb question!
Would this work?
function load_script() { if (!is_admin()) { wp_register_script('autotrack', '//cdnjs.cloudflare.com/ajax/libs/autotrack/0.6.4/autotrack.js', array(), '0.6.4'); wp_enqueue_script('autotrack'); } } add_action('wp_footer', 'load_script');
Find me at Joyce Grace (http://www.joycegrace.ca)
April 5, 2016 at 7:15 pm in reply to: Using enqueue script for Google Analytics autotrack.js #183015joycegraceParticipantYou are so nice! Thank you! I will test this out and see if it tracks ok and report back
Find me at Joyce Grace (http://www.joycegrace.ca)
April 1, 2016 at 1:27 am in reply to: Featured image centering problem when I override the alignment class for mobile #182628joycegraceParticipantHave you tried making your CSS more specific? Like only applying the center change on the media query to your image, like applying it to the img tag? Or the image link? Or you could apply it to just the p tag? or whatever html the text uses?
I don't recommend you do this, but you can also apply the css to the ID of the image, if you can get it from your browser's inspect element tool, or firebug.
But that would mean you'd have to update your CSS every time you change that one featured image.
Sorry if this is not really an answer for you.
You should definitely post a link to your site so people here can help.
Find me at Joyce Grace (http://www.joycegrace.ca)
April 1, 2016 at 1:22 am in reply to: Where to look for Custom Functions code? (Prose child theme) #182627joycegraceParticipantHi I'm not sure that this reply will be of any help to you but here is what I'm guessing:
I'm not sure where you are editing "custom functions field" - is this plugin based? If so, you would want to check with that plugin.
If it is a "field" on the WP dashboard, then it is likely in your database somewhere, in a backup file. You may want to ensure the plugin you used (if any) to insert this code is in the backup file.
If it is an addition to your functions.php file then you would go to wp-content/themes/prose-whatever-you-named-this/functions.php and see what is in that file, in your backup copy.
I think it would be easier if you set up a copy of your site using a migration tool like iThemes backupbuddy - it's called "restore" or something. You can do this in a few clicks, if you set up your database beforehand for it to populate.
But if you have no backup of your site, then you may be out of luck. Maybe your host has a copy they're not telling you about, but I doubt it.
Find me at Joyce Grace (http://www.joycegrace.ca)
-
AuthorPosts