Forum Replies Created
-
AuthorPosts
-
Thank you! I am sorry, I did not explain properly.
In the previous posts on this thread, you showed me how to put two different logos on same website. We have a market with two different locations. The page 206 in your example is the page ID’s where these secondary logos show.
The code you gave me was great, but I need to have those logos direct to a page other than the home page, when you click on them. How do I do this? Thanks!
Thank you so much!
How do I make it so both of these logos point to a specific page on the site (not the home page)?This reply has been marked as private.Thank you so much! I’m not sure were to insert that code into php.
Please see a copy of the 1st lines of code in there now. Could you tell me where to insert?
<?php
if( ! defined( ‘ABSPATH’ ) ) { die(); }global $avia_config;
if( ! is_array( $avia_config ) )
{
$avia_config = array();
}/**
* With WP 5.8 block editor was introduced to widget page. This is not supported by Enfold.
* Based on https://wordpress.org/plugins/classic-widgets/ we disable this feature.
*
* For users who need to use it we updated our widgets but preview is not supported properly.
*
* ACTIVATING THIS FEATURE IS NOT SUPPORTED and in trial beta !!
* =============================================================
*
* @since 4.9 started to update widgets to support Block Widget editor – but this is only in trial BETA and preview is not supported properly !!
*/
if( ! current_theme_supports( ‘avia_enable_widgets_block_editor’ ) )
{
// Disables the block editor from managing widgets in the Gutenberg plugin.
add_filter( ‘gutenberg_use_widgets_block_editor’, ‘__return_false’ );// Disables the block editor from managing widgets.
add_filter( ‘use_widgets_block_editor’, ‘__return_false’ );
}/*
* if you run a child theme and don’t want to load the default functions.php file
* set the global var below in you childthemes function.php to true:
*
* example:
*
* global $avia_config;
* $avia_config[‘use_child_theme_functions_only’] = true;
*
*
* The default functions.php file will then no longer be loaded. You need to make sure then
* to include framework and functions that you want to use by yourself.
*
* This is only recommended for advanced users
*/
if( isset( $avia_config[‘use_child_theme_functions_only’] ) )
{
return;
}add_filter( ‘wp_nav_menu_args’, ‘my_custom_wp_nav_menu_args’ );
/**
* Display Different Menu Based on Page Type
*/
add_filter(‘wp_nav_menu_args’, ‘my_custom_wp_nav_menu_args’);function my_custom_wp_nav_menu_args($args) {
if (isset($args[‘theme_location’]) && $args[‘theme_location’] === ‘avia’) {
// List of specific page IDs
$specific_pages = array(3814, 3827, 3825, 3823, 3821, 3818, 3816);if (is_page($specific_pages)) {
$args[‘menu’] = ‘Lil Audreys menu’;
} else {
$args[‘menu’] = ‘Audreys Market Menu’;
}
}
return $args;
}/**
* Disable loading of non active plugin support
*/
$checkfile = trailingslashit( pathinfo( __FILE__, PATHINFO_DIRNAME ) ) . ‘config-include.php’;
if( file_exists( $checkfile ) )
{
require_once $checkfile;
}/*
* create a global var which stores the ids of all posts which are displayed on the current page. It will help us to filter duplicate postsAs always thanks for the GREAT support! Perfect!
- This reply was modified 8 years, 7 months ago by lobstahhhhhhh. Reason: spelling error
Yigit, your team provides AMAZING support. This was perfect and apologize for the oversight. Thank you VERY much. It’s worked perfectly.
Yigit, that is great and thank you for such the fast response!
SO, the first two id’s are hiding perfectly but the not the rest. Hmmmm, what’s wrong do you think? THANKS!!!
The code is now:
.page-id-8524 .main_menu, .page-id-3375 .main_menu, page-id-2811 .main_menu, page-id-2798 .main_menu, page-id-3469 .main_menu, page-id-3448 .main_menu, page-id-3467 .main_menu, page-id-3471 .main_menu{
display: none;
}Thank you Ismael and team! Although I do not see the tiny magnifying glass on mobile view, unless you are looking for it…one would never see. It’s also made the search on the ipad view smaller too? It looks odd now.
What could be causing the root of this problem? Thanks again!
Please note we are sending privately, thank you.
Hi there, apologies for not every creating this temporary admin, can this still be done if we send this your way? Thanks!
Hi there, thanks so much. Let me clarify. Tried to use Yigit’s code and it jumbled up the header in a horrible way. This is why you do not see the code added to the ones I sent. Sent that code to help figure out why Yigit’s code was not working and scrambling the header on mobile. Thanks!
Thank you, please note sent some infor in the private content below.
This worked perfectly, thanks so much!
This did the trick perfectly, thanks again for the great support!
Thanks Ismael!
Understand the grid row cells and settings. So once this is set up, images are placed inside each cell. How did they make the color overlay? Thank you for your help!
Hello!
Yes am trying to set a few pages in the site to this increased height. If so, and build out a new page for this height, how does one find the page id? Thank you!
Hi there,
See for example this page, it’s being contained by the coded pasted earlier. http://www.lobstertrail.com/eat/lobster-bakes/
I tried your new code, but did not contain it and made it higher. Thanks for your help!Hi there, sorry for long delay but I just caught one of these and wanted to send the link. http://www.lobstertrail.com/cape-cod-the-islands-lobster-bakes/
Until I hovered over the full width sub menu it appeared as a blank white area, thoughts? Thanks!
Hi Yigit! Thank you – that helped but only a small bit when the tablet is held portrait. It fixed the logo overlap but not the three column grid layout seen on pages like this : http://www.lobstertrail.com/eat/1000-lobster-rolls/ it is still not showing the columns correctly. On the landscape version of ipad, logo still overlaps and columns awful.
The iphone works perfectly and so having hard time understanding issues with tablet. The iphone stacks the columns one on top of each other in portrait and then when flip to landscape …it auto sizes to two columns. Can the ipad layout work similarly?
Thanks so much.
May 26, 2015 at 4:16 pm in reply to: Enfold sidebar widget that can;t seem to locate and "turn off" #450150Seriously you guys are the best! This worked great :) Wow, we appreciate the amazing support Enfold team!!!!!!!
Yigit, it worked like a charm! Thank you SO much!
May 26, 2015 at 2:56 pm in reply to: Enfold sidebar widget that can;t seem to locate and "turn off" #450106HI Yigit,
Thanks so much! You see this is why we wrote and asked, there is absolutely nothing showing in the display everywhere. We can;t seem to locate this widget anywhere….help? Thank you!
WOW, it worked perfectly! You guys are the best, thank you so much :)
May 9, 2015 at 10:12 pm in reply to: code needed for masonry sort feature, to display shorter tag names #442007Appreciate all the help on this, but still have not been able to solve this issue. As have many pages and many tags would like to be able to display the taxonomy tags as shorter versions. Is it possible? Thanks!
This reply has been marked as private.Thank you to you both. We would like to try and avoid a plug in, is the only way to make most of site print-able? If you’d like we can send username and password for beta site. Thank you.
March 25, 2015 at 11:55 pm in reply to: code needed for masonry sort feature, to display shorter tag names #418214This reply has been marked as private.March 18, 2015 at 6:36 pm in reply to: sortable display taxonomy, is it possible to add a title? #413878Ok gotcha! thanks! I understand completely, and would this same type of approach be possible on particular pages vs the core file for all masonry output with sort? So could we edit a certain page with the masonry output using a respective similar code?
March 6, 2015 at 11:42 pm in reply to: Custom drop down menus that are different than main menu #407336Hi Elliott and Andy!
Actually the full width sub menu element would be perfect! Thank you, but only see how to make this drop down in mobile. How about for desktop? Many thanks!
This reply has been marked as private. -
AuthorPosts