little_bird
Forum Replies Created
-
Forum: Plugins
In reply to: [Translate Wordpress with GTranslate] Shortcode label not workingHi,
Thanks for your fast response and great support. That solved the issue of the label.
Thank you!
Forum: Plugins
In reply to: [WP Super Cache] Plugin is not caching the home pageHi,
I found out Polylang was setting the DONOTCACHEPAGE?constant to true through the Browser Language Detection feature.
Thanks for your help.
- This reply was modified 1 year, 4 months ago by little_bird.
Forum: Themes and Templates
In reply to: [Astra] astra_masthead_content action not workingThanks, for your answer. Along with that code, I also added some CSS using the Astra Font for adding the search icon, without that you can’t see the search icon next to the menu but if you see the code with the code inspector, the additional markup should be there. For me, the code works fine if the header builder is not enabled.
Forum: Plugins
In reply to: [WP Super Cache] Plugin is not caching the home pageYes, in the “Contents” tab is where the index.php part of all URIs is missing. How can I search which plugin is setting the DONOTCACHEPAGE constant without disabling any of them?
And another question, what is the DO NOT CACHE PAGE?secret key for?
- This reply was modified 1 year, 4 months ago by little_bird.
Forum: Themes and Templates
In reply to: [Astra] astra_masthead_content action not workingHi Herman,
I need to add a custom search button markup next to the main menu. I know there is a search block on the builder but I need this specific markup that already works perfectly in the site not using the header builder.
function search_menu_button_markup() { ob_start(); ?> <div class="ast-masthead-custom-menu-items search-custom-menu-item"> <div class="search-special-icon-wrapper" role="search" tabindex="-1"> <div class="search-special-icon-inner"> <a href="#" class="search-special-icon" aria-label="Search icon link"> <span class="screen-reader-text"><?php __('Search','makingphysicsclear')?></span> </a> </div> </div> </div> <?php $markup = ob_get_clean(); return apply_filters( 'astra_masthead_get_menu_items', $markup ); } function search_menu_button() { $markup = search_menu_button_markup(); echo $markup; } add_action( 'astra_masthead_content', 'search_menu_button', 25 );
Forum: Plugins
In reply to: [Ad Inserter - Ad Manager & AdSense Ads] Styles removed from codeThanks for your answer.
The issue was a related to cache and the plugin Autoptimize. Now after clearing all the caches the styles are applied.
Thanks
Forum: Developing with WordPress
In reply to: Using wp_localize_script for a block scriptI think you are right. Anyway, the documentation is not clear about this. I managed to use wp_localize_script with the handle I found on the HTML script tag.
Thanks
Forum: Developing with WordPress
In reply to: Using wp_localize_script for a block scriptHi bcworkz,
You are right, I found the handle through the id attribute of the HTML tag. I was downright convinced that the value in the second element of the “viewScript” array was the handle of the script, so what is supposed to be that string?
Thanks
Forum: Developing with WordPress
In reply to: Insert data-label through new format on RichTextHi bcworkz,
Thanks for your answer. I realized that it is indeed possible to add data attributes through a custom format on a RichText component. It didn’t work for me before because I was using the wrong syntax, but now it is working. without using the wp_kses_allowed_html() filter.
If someone needs it for reference, this is part of the format code using a ComboboxControl component.
<ComboboxControl label="Term to add" value={term} options={options} onChange={(newTerm) => { // newTerm is the postID setTerm(newTerm); setShowPopover(false); const attributes = { style: 'color: #1d55a9; font-weight: bold;', class:
hebrew-israterm
, 'data-hbwterm':${newTerm}
}; if (newTerm) { onChange(applyFormat(value, { type: 'heb-expression-block/hebrew-expression', attributes })); } else { onChange(toggleFormat(value, { type: 'heb-expression-block/hebrew-expression' })); } }} __nextHasNoMarginBottom />Hi,
The problem was in the theme. There was a JavasScript snippet after the get_footer() code that caused the conflict.
Thanks a lot for your fast and useful support.
According to the documentation that is a Premium Feature however, I tried to add the shortcode [auto_id start=1] in a hidden value but that doesn’t solve the issue.
Forum: Plugins
In reply to: [Calculated Fields Form] Send data between formsThat’s exactly what I needed.
Thanks a lot
Forum: Plugins
In reply to: [Safe SVG] SVG file is not allowed for security reasonsHi,
That is not working for me. The plugin was working fine but today I tried to upload a new SVG image and suddenly I got the “SVG file is not allowed for security reasons” message.I even tried to upload SVG images that I already successfully uploaded before but this time the uploading failed.
Do you know why this is happening?
Forum: Plugins
In reply to: [Custom Icons for Elementor] icons disappeared after migrationHi Michael
Thanks for your answer. I used the plugin Better Search Replace to replace the new URL, but in the ec_icons_fonts option there are two different paths, the web path (like in font_url and css_url) and the system path (css_root and css_folder). Where do I find the system path? Is the one that begins with /home at the server?
Forum: Plugins
In reply to: [Custom Icons for Elementor] icons disappeared after migrationI used Duplicator for files and database migration of the site, but in the ec_icons_fonts option in the wp_options table the new site url is correct but the files path is the old one. Why did this happen and how can I change the css_root at the database?