miha71
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [OceanWP] Category title instead of Blog title in oceanwpSorry, my answer was not formatted well!
Thank you Shahin,
It is in local server so I can`t share url.</p> <p>Problem 2 I solve with this code in functions.php:</p> <pre class=”wp-block-code”><code>function prefix_category_title( $title ) { if ( is_category() ) { $title = single_cat_title( ”, false ); } return $title; } add_filter( ‘get_the_archive_title’, ‘prefix_category_title’ );</code></pre> <p>So, this code removes prefix “Category:” in blog archive page and left only category title itself.<br>But for problem 1 (in singl post view), in OceaWwp customization panel I have two options for page header title: Blog and Post Title. I don`t want that, I also need category title here.
Forum: Themes and Templates
In reply to: [OceanWP] Category title instead of Blog title in oceanwpThank you Shahin,
It is in local server so I can`t share url.<br>Problem 2 I solve with this code in functions.php:</p> <pre class=”wp-block-code”><code>function prefix_category_title( $title ) { if ( is_category() ) { $title = single_cat_title( ”, false ); } return $title; } add_filter( ‘get_the_archive_title’, ‘prefix_category_title’ );</code></pre> <p>So, this code removes prefix “Category:” in blog archive page and left only category title itself.</p> <p>But for problem 1 (in singl post view), in OceaWwp customization panel I have two options for page header title: Blog and Post Title. I don`t want that, I also need category title here.
Forum: Themes and Templates
In reply to: [OceanWP] Translate Continue Reading with polylangThank you, Shahin, and sorry for late answer.
I did it with your first function that you sent me a link, but I had to do it with if statement with condition about current language since polylang can not translate directly to my language (serbian).
if (pll_current_language() == 'sr'){ function myprefix_post_readmore_link_text() { return '?itajte dalje'; } add_filter( 'ocean_post_continue_reading', 'myprefix_post_readmore_link_text' ); }
Forum: Themes and Templates
In reply to: [OceanWP] Translate Continue Reading with polylangNo, it does not help me.
I mean thank you very much, but I do not need general references to documentation. I need function that I will put in my theme.I want “Continue Reading” to stay like that in english version of website but I want it to be translatable for other language (i.e “?itajte dalje” for Serbian or “Mehr” for german version of website.
Thank you in advance
Sorry, solved.
I remove switcher that I used as element of Elementor & Header Footer.
Instead, I added it as custom switcher via shortcode (with code for it in function file).
And now it is ok.Forum: Themes and Templates
In reply to: [OceanWP] Elementor dropdown expanded menu always expandedThank you for respond.
Things are like this at my screen shots.
Everything is at the latest version.
It is the same when I deactivate all plugins (I did not deactivate only Elementor and Elementor Header & Footer Builder because I make the page and header with menu in it.
I make page in Elementor and it loads header made in Header & Footer Builder. In header I used Navigation Menu element (under Site section) and choose layout of menu “Expanded”.
I want this menu to function in a way that only active drop down is open and also you can see one more problem. If I activate dropdown than parent item has increased height because it has position relative as inline parameter that I cannot find a way to change.
I also gave here screenshot of the menu I want to achieve. I made it sometimes ago in Joomla, but now I am supposed to change website to WP.
Screenshots:
https://postimg.cc/gallery/7hbkXqQ== Server Environment == Operating System: WINNT Software: Apache/2.4.46 (Win64) PHP/7.4.9 MySQL version: MySQL Community Server (GPL) v5.7.31 PHP Version: 7.4.9 PHP Memory Limit: 128M PHP Max Input Vars: 2500 PHP Max Post Size: 32M GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected == WordPress Environment == Version: 6.0.2 Site URL: https://localhost/hajducke_vode_wp Home URL: https://localhost/hajducke_vode_wp WP Multisite: No Max Upload Size: 16 MB Memory limit: 40M Max Memory limit: 256M Permalink Structure: /%postname%/ Language: en-US Timezone: 0 Admin Email: [email protected] Debug Mode: Inactive == Theme == Name: OceanWP Child Theme Version: 1.0 Author: OceanWP Child Theme: Yes Parent Theme Name: OceanWP Parent Theme Version: 3.3.5 Parent Theme Author: OceanWP == User == Role: administrator WP Profile lang: en_US User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0 == Active Plugins == Add Custom Body Class Version: 1.3 Author: Anil Ankola Duplicate Page Version: 4.4.9 Author: mndpsingh287 Elementor Version: 3.7.8 Author: Elementor.com Elementor Header & Footer Builder Version: 1.6.13 Author: Brainstorm Force, Nikhil Chavan EmbedPress Version: 3.5.1 Author: WPDeveloper Essential Addons for Elementor Version: 5.3.2 Author: WPDeveloper Exclusive Addons Elementor Version: 2.5.8 Author: DevsCred.com FileBird Lite Version: 5.0.6 Author: Ninja Team Ocean Extra Version: 2.0.5 Author: OceanWP Ocean Social Sharing Version: 2.0.2 Author: OceanWP Polylang Version: 3.2.7 Author: WP SYNTEX Polylang Connect for Elementor Version: 2.3.2 Author: Creame Rank Math SEO Version: 1.0.98.2 Author: Rank Math Smart Slider 3 Version: 3.5.1.11 Author: Nextend == Elementor Experiments == Optimized DOM Output: Inactive Improved Asset Loading: Inactive Improved CSS Loading: Inactive Inline Font Icons: Inactive Accessibility Improvements: Inactive Additional Custom Breakpoints: Inactive Import Export Template Kit: Inactive Hide native WordPress widgets from search results: Inactive admin_menu_rearrangement: Inactive by default Flexbox Container: Inactive Landing Pages: Inactive Color Sampler: Inactive Favorite Widgets: Inactive Admin Top Bar: Inactive == Log == PHP: showing 2 of 2PHP: 2022-09-12 09:05:52 [notice X 1][C:\wamp64\www\hajducke_vode_wp\wp-content\plugins\elementor\core\common\modules\ajax\module.php::171] Undefined index: data [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2022-09-19 10:40:19 [notice X 117][C:\wamp64\www\hajducke_vode_wp\wp-content\plugins\elementor\modules\dev-tools\deprecation.php::304] The $control_id argument is deprecated since version 3.5.0! [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] Log: showing 20 of 202022-09-14 08:42:03 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.7.2', 'to' => '3.7.4', )] 2022-09-14 08:42:05 [info] elementor::elementor_updater Started 2022-09-14 08:42:05 [info] Elementor/Upgrades - _on_each_version Start 2022-09-14 08:42:05 [info] Elementor/Upgrades - _on_each_version Finished 2022-09-14 08:42:05 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.7.2', 'to' => '3.7.4', )] 2022-09-14 08:42:07 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.7.2', 'to' => '3.7.4', )] 2022-09-18 07:59:51 [info] elementor::elementor_updater Started 2022-09-18 07:59:51 [info] Elementor/Upgrades - _on_each_version Start 2022-09-18 07:59:51 [info] Elementor/Upgrades - _on_each_version Finished 2022-09-18 07:59:51 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.7.4', 'to' => '3.7.6', )] 2022-09-21 06:34:59 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.7.6', 'to' => '3.7.7', )] 2022-09-21 06:35:01 [info] elementor::elementor_updater Started 2022-09-21 06:35:01 [info] Elementor/Upgrades - _on_each_version Start 2022-09-21 06:35:01 [info] Elementor/Upgrades - _on_each_version Finished 2022-09-21 06:35:01 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.7.6', 'to' => '3.7.7', )] 2022-09-21 06:35:03 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.7.6', 'to' => '3.7.7', )] 2022-10-03 07:40:16 [info] elementor::elementor_updater Started 2022-10-03 07:40:16 [info] Elementor/Upgrades - _on_each_version Start 2022-10-03 07:40:16 [info] Elementor/Upgrades - _on_each_version Finished 2022-10-03 07:40:16 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.7.7', 'to' => '3.7.8', )] JS: showing 2 of 2JS: 2022-09-21 09:33:37 [error X 10][https://localhost/hajducke_vode_wp/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.7.7:3:294644] C.ui.form is undefined JS: 2022-09-21 23:48:27 [error X 2][https://localhost/hajducke_vode_wp/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.7.7:3:1060990] $ is null == Elementor - Compatibility Tag == Elementor Header & Footer Builder: Compatibility not specified Essential Addons for Elementor: Compatibility not specified Exclusive Addons Elementor: Compatibility not specified Polylang Connect for Elementor: Compatibility not specified
Forum: Themes and Templates
In reply to: [OceanWP] OceanWP dropdown menu always open on mobileShahin, thank you for answering.
It is in local server (wamp).
So, when I toggle mobile menu it opens and I see only first level.
I want second level to be visible, so I do not need to click parent item in first level.
Hope I explained it well.