cgdannie
Forum Replies Created
-
Forum: Plugins
In reply to: [Extended Google Map for Elementor] Elementor Google Map ExtendedSame problem here :/
Thank you, for your answer.
I want to load some fields of some posts to generate custom filter buttons.
I didn’t knew, that enabling php is such a problem because outside of Elementor the PHP Code Widget worked fine.
I also didn’t knew, that WordPress gives us access to the database through ajax requests. This totally solves my problem. Thank you again for your help!
- This reply was modified 8 years, 6 months ago by cgdannie.
Thank you Ben for your fast response. But I am not talking about the theme code editor but the PHP Code Widget, that I dragged into the Elementor page.
If you disabled PHP Code inside of an Elementor page if no user is logged in, how can I enable that again?
Why is this a security reason? WordPress an your plugin are written in PHP. Why shouldn’t I use PHP to fetch data that is else not accessible in the way, I want to display it? For small tasks the PHP Code Widget is much more efficient to use, than writing always a completely new plugin.
Of course I have an issue with the implementation. I wrote that I disabled the plugin and implemented the JS and HTML code for the model manually.
I still don’t know how to achieve the desired result with your plugin.
If I activate your plugin (and disable legacy mode), the plugin inserts the id
modal readyon its own into the pages and returns only its content and not the content where I manually inserted the id.The same result appears, when I insert a custom id and want to use this with the
data-divattribute.@allurewebsolutions Yes, this is exactly what I want 🙂
UPDATE
I disabled the Plugin and used a modified Version of your code from this post: https://allurewebsolutions.com/open-wordpress-post-modal-without-plugin
This works perfectly! Thank you very much!
But I am also curious if it is possible to use the plugin and set the modal-ready id like i did without the plugin adding the id and the content on its own.
In the last versions something changed. Now (version 1.6.3) you have to add the animation type as a json object to a
data-settingsattribute. You also need to add the classesanimatedandelementor-invisible.<div class="elementor-element elementor-invisible animated animated-slow" data-settings='{"animation":"bounceInUp"}' data-element-type="my-custom-element-type"> Hello World </div>To add an animation delay (in ms), change
{"animation":"bounceInUp"}e.g. to{"animation":"bounceInUp", "animation_delay":1000}.- This reply was modified 8 years, 10 months ago by cgdannie.
The simplest solution would be to deactivate the transition for the elements that contain the class parallax. Simply add the following code to your theme’s stylesheet (style.css):
.parallax { transition: none !important; }But keep in mind that this will also disable the new transitions for border, border-radius and box-shadow for these elements.
- This reply was modified 8 years, 11 months ago by cgdannie.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Error when using multiple imagesThank you for your fast response.
I am on version 2.6.9. But the last time, I edited somtheing is maybe a month back. So I cannot say whether the error was already present before the update.
I reinstalled the plugin and deactived all other plugins like you said but this did not change anything about the error.
On the second question: it is a single select image.
Edit:
Is it possible to provide me an older version of the plugin to test wheather the problems are a result of the update?Edit 2:
I was able to reproduce the seccond problem with the if block on a different system with the same version of pods. But I was not able to reproduce the first error.Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Error when using multiple imagesI am not sure if this is related, but if I insert the following code in a templete
[if signatur] <div class="signatur"> <img src="{@signatur._src.medium}" alt="Signatur von {@post_title}"> </div> [/if]I get the following output on the page using the pods list widget with this template:
<div class="signatur"> <img src(unknown) alt="Signatur von Johan Wolfgang von Goethe"> </div>If I remove the if block, I get the correct image. I tried al differnt variants of the magic tag. Even @signatur.img} does not work.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Error when using multiple imagesI am also noticing, that after updating a pods item (and getting the above error) I no see a double entry for the pods item when displaying it with the pods list item widget. In the normal list of all pods items I dont have a double entry.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Filter PodsThank you both very much. I got it to work by adding the taxonomy in the pods template as a class. Then I can insert a pods list with the pods list widget.
For the filter buttons I then added the following code with the PHP Code Widget on the page (https://de.ww.wp.xz.cn/plugins/php-code-widget/).
Is there something I can optimize in this workflow?
<?php define('TAXONOMY', 'my-taxonomy'); define('CONTAINER_CLASS', 'my-container'); ?> <div class="controls"> <?php $taxonomies = get_terms( array( 'taxonomy' => TAXONOMY, 'hide_empty' => false, ) ); ?> <button type="button" data-filter="all">All</button> <?php foreach($taxonomies as $taxonomy): ?> <button type="button" data-filter=".<?= $taxonomy->slug ?>"><?= $taxonomy->name ?></button> <?php endforeach; ?> </div> <script> document.onreadystatechange = function () { if (document.readyState == "interactive") { var container = document.querySelector(".<?= CONTAINER_CLASS ?>"); var mixer = mixitup(container); } } </script>- This reply was modified 8 years, 12 months ago by cgdannie.
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] Filter PodsI am also interested in this kind of filtering. Could you explain your solution more in Detail? What plugin do you exactly mean with Mixitup? Is it possible to use this with taxonomies
Or is there a better way for live/ajax filtering by taxonomy? Beautiful Taxonomy Filters and Search & Filter always redirect to another page. Also I dont need a submit button or dropdowns. The user should just be able to click on the name of the taxonmy.
Ok, I found the solution on my own.
You need to add the class “elementor-element” (and “animated-slow” or “animated-fast” for a different animation speed), a data-animation attribute with the animation name in camel case as the value and an data-element-type attribute with any value.
So for example you can use somtheing like this:
<div class="elementor-element animated-slow" data-animation="bounceInUp" data-element-type="my-custom-element-type"> Hello World </div>Forum: Plugins
In reply to: [Slider by 10Web - Responsive Image Slider] Save Custom SettingThank you very much, this was quite helpful for styling some elements.
1) But I still cannot change the default settings. For example, I want always ‘Rightclick protection’ to be on and ‘Turn SliderWD Media Upload’ to be off.
2) And how can I set the width of the element ‘#wds_container1_0 #wds_container2_0’ and the width and the height (plus some extra pixels) of the element ‘.wds-loading’ to be equal to the dimensions in the global settings? Because every Slider has a different size, I cannot ‘harcode’ this into css.
At the moment, I have to add to every slider the CSS-rules like this:#wds_container1_0 #wds_container2_0{ width:270px!important; float:right!important; } .wds_loading{ width: 270px; height: calc(220px + 6px); }3) I have set a link on every slide to an image opening in a new tab. But I want to open the target in a lightbox. I want to use the plugin responsive lightbox with the fancybox theme. This gives me as a selector the rel-attribute, at the moment: rel=”lightbox”.
I have also the option to enable triggering lightbox on custom jquery events. The default is ‘ajaxComplete’. How can I integrate this?4) Hoc can I set a slider as the header-image in the twenty-fourteen-theme?
I do not know much about php or javascript, so I cannot find or understand the right files or lines in the plugin editor.
Thank you very much, I hope you can help me again 🙂
And again, I really apologize for my terrible English…