I have a file that could help your investigations, but I cannot upload here nor answer to the mails I receive of the forum software nor is there a private message system in this forum. So how can I send you something in private?
Thank you Alin.
I was also writing to Andrew Ozz, WP Core developer and creator of the TinyMCE Advanced plugin, and just this weekend he replied this, which you could also send to your dev or include it in your ticket to VC dev, it might be useful for him:
Andrew Ozz wrote:
You will have to see how these plugins break the formatting. Generally
you can add another TinyMCE plugin to pre-process the editor content
before saving or after loading in the editor. You can even manipulate
the DOM inside the editor. TinyMCE has pretty good APIs for that.
I’m guessing these plugins add some code that relies on P tags being
replaced by line breaks. If this is on the PHP/server side, there is not
much that can be done. The code will have to be changed.
Read this post on the forums:
https://wordpress.org/support/topic/stop-removing-and-conflicts-visual-composer-and-other-pagebuilders?replies=2#post-7250137
Great thanks for looking up.
Unfortunately, if I replace that line, the post is not showing at all anymore π
No error, but also now output, just a header with a footer π
But anyhow, if you fix it in the next update and this will be a question of one or two weeks, never mind, I can wait that long. If it should take longer, maybe you can give this workaround a short check to see if it works for you.
Hello Emil,
this is how I work, but whenever I use a new module in the future, I need to always adapt the design again, which is not a very efficient way and I would like to improve this workflow.
I want to replace the darkgrey color #222 anywhere on my page with the main color of the project which is blue, and I could simply replace that ONE line in less and it would be done. Is there a way for me to do so, or are the less things just for you during the development period?
Also you could think about integrating those variables into the panel, at least the four main fonts and the #222 are of a major design importance right at the fundament and you would save your clients tons of CSS child work. I think it is worth pondering about such a designer-friendly aspect.
I thank you already here and wish you all great days before describing an alternative idea of mine below π
——————————-
An alternative that came to my mind that doesnt require less but works with child css would be to catch all instances of e.g. #222 or ‘roboto’ using a script that goes through the whole style.css and extracts all the classes and id’s in which the search term appears. I guess with RegEx this can be achieved, but also with RegEx I don’t know enough to write such a script. In case one of you has the knowledge and a bit of time left to create such a script, it would be very useful not only for myself. I describe the logic behind, maybe an expert will immediately see the regex string appearing before his eyes π
So I need a script that collects all classes to which e.g. Roboto is assigned. Basically it needs to
1. find Roboto, then
2. go back to the { and
3. collect everything before that { until
4. the last } before, so it needs to go backwards searching
5. it needs to take all those classes and id’s it caught and add it to the collection string
6. then it needs to add a comma to the last entry, so the list can continue.
The result will be a very big list of comma-separated classes which I can then easily assign the new font to.
Sounds great. The code I posted is actually working on a live site, so it does the job, even if for sure it would not look like this if you would have done it (but more like something cleaner with td_something::something π
I don’t know much about all these functions, I am tweaking only in HTML and CSS and know a bit about PHP and that’s it. But if in time I find my way to reach my desired output as well in your “system”, I will stay one more happy client for you. For me it is important that I can change all the things that I like to be different, and while some can be solved with CSS, for others I will need to ask you, especially in the beginning.
Thanks for your answers, abia astept for the documentation…
I dont have those files … I have much less files in my /includes/wpbooster/
Also searching in explorer didnt show anything called like this?
Why do you have to many files in your wpbooster and I not?
And as it seems, you suggest a core hack. Will you change this in the next update by yourself to make the theme child-friendlier? Please make your theme child-friendly, since this is superimportant.
If not, is there also a solution to overwrite this function from within the child’s functions?
I am afraid to say that this time the answer completely ignored my question before the code π
What you say is what I have done already, but I want to know if I can do it without hacking the core.
If I simply copy these lines into my child functions.php it gives me an error, and I would like to know if there is a solution to overwrite it from my child-theme?
Take off one more time, maybe in the second attempt you’ll save me again :))
Thank you.
Looks quite easy to change the font in such a way π
Do I need to learn LESS or software or can I change this somewhere simply in a file?
Yupp that’s its new place now, line 2249 for our fellow seekers, thank you batman, may this first rescue mission be just the beginning…
The VC has nothing to do here, because it doesnt need to show up of course on pages that are build with VC.
I need somthing for the ELSE section, so no VC used. I succeeded now with regular WP onboard tools, adding in the else section my featured image. Might not be up to the programming level your framework is set in, but it works π Actually the longer I look into your theme, the more it feels that from good old WP not much is left … it looks like its complete own system. Hope I’ll find my way into it. Is there also a documentation for theme-tweakers like me, one that is not about the panel, but about how to adapt the theme beyond? What all these functions are for? About the API?
}
...
else {
//no page builder detected, we load a default page template with sidebar / no sidebar
?>
<div class="td-main-content-wrap">
<div class="td-container <?php echo $td_sidebar_position; ?>">
<?php
if ( ( is_singular() || is_home() ) && current_theme_supports( 'post-thumbnails' ) ) :
echo get_the_post_thumbnail( $post->ID, 'td_1068x0' ); ?>
" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" class="header-img" alt="" />
<?php endif;?>
...
I am glad if I can also help a bit. Yet, do you have a short idea what I could try as a quick workaround?
Actually for testing it is enough to delete the content of the file … no need to check the sourcecode afterwards, because if the page still shows, the file is definetily not taken from the child-theme π
I have tested with style1 as well, same situation. Didn’t test other templates though, guess it is valid for all of them.
Which is actually an impossibility, isn’t it? Isn’t WP itself handling the child-theme thing? Did you “bend” something there? π
AND also the sticky menu is disappearing below it.
I was some z-indexes in the source code used by the revslide, something around 18, 20, but also i found that you have acutally put the menu on z-index:9999
So it should work, but it doesnt, not in FF, not in Chrome, and I have no idea of why and hope you find out soon and can give also a temporary fix until the next update comes π
Thanks for this theme