jaatendi
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Little chunk of code appearing at top of frontendThank you. So should I paste each of the php files one by one from the theme into that and check them? Im not a developer but Im good at copy and paste.
Forum: Plugins
In reply to: [WooCommerce] Creating Custom Orders in AdminHi thanks for responding! Here are more details:
Limitations of our existing system:
1) products need to be searched for by typing letters into a search field so that they can be added to the order, they cannot be browsed and selected.
2) a new customer cannot be created, an existing customer must be selected.
3) The customer’s address needs to be loaded into the order and appears to not be working.
4) The price cannot be customized, we can only use discount coupons.
5) A payment method cannot be accepted, we can only email them an invoice with a link to pay, which gave me an error message, when I clicked on the link in the email as a customer.
Forum: Fixing WordPress
In reply to: Email collecting pop upThanks! It’s not bad, at least its doing what I need it to do. Not thrilled with the default CSS styles they let you choose from, but it works.
Forum: Fixing WordPress
In reply to: Scroll To Anchor Menu Items Stopped WorkignThank you, I added added the anchor names to the “Row ID” field rather than the “Anchor ID” field in page builder. In the menu, I put “#courses” in the URL field, and this made the page go to the proper section. But as you said, the scrolling functionality isn’t working.
The Bridge theme has the scrolling built in, and I’ve been referring to the documentation of the Bridge theme:
https://bridge.qodeinteractive.com/documentation/4-quick-setup/4-2-header/4-2-3-assigning-menus/4-2-3-1-anchoring/They are saying I should be using the “Anchor ID”, not the “Row ID”, in page builder. For the menu, I’m not sure if I should put “#courses” in the URL field, or put “everetdale.com/ca/store/” in the URL field, and then put “#courses” in the anchor field of the menu item.
For now I’m going to put “#courses” in the URL field of the menu item, and “#courses” in the Row ID field in page builder, rather than using the Anchor ID field in page builder. At least the buttons work that way, just without scrolling. However I feel like without the scrolling, the project is incomplete. I’ve spent hours on this and am totally stumped.
Forum: Fixing WordPress
In reply to: Scroll To Anchor Menu Items Stopped WorkignThanks for the help guys. Still not working. I made this little video showing the situation:
Forum: Plugins
In reply to: [WP Latest Posts] How to remove CSS height of blog post title?hi thanks for helping! Yes exactly those are the space I want to get rid of. Well, the space above the title is ok, it’s just below.
I found the problem. Was conflicting with either Speed Booster or Cookie Consent plugin
<?php global $qode_options_proya; $page_id = qode_get_page_id(); ?> <?php $content_bottom_area = "yes"; if(get_post_meta($page_id, "qode_enable_content_bottom_area", true) != ""){ $content_bottom_area = get_post_meta($page_id, "qode_enable_content_bottom_area", true); } else{ if (isset($qode_options_proya['enable_content_bottom_area'])) { $content_bottom_area = $qode_options_proya['enable_content_bottom_area']; } } $content_bottom_area_sidebar = ""; if(get_post_meta($page_id, 'qode_choose_content_bottom_sidebar', true) != ""){ $content_bottom_area_sidebar = get_post_meta($page_id, 'qode_choose_content_bottom_sidebar', true); } else { if(isset($qode_options_proya['content_bottom_sidebar_custom_display'])) { $content_bottom_area_sidebar = $qode_options_proya['content_bottom_sidebar_custom_display']; } } $content_bottom_area_in_grid = true; if(get_post_meta($page_id, 'qode_content_bottom_sidebar_in_grid', true) != ""){ if(get_post_meta($page_id, 'qode_content_bottom_sidebar_in_grid', true) == "yes") { $content_bottom_area_in_grid = true; } else { $content_bottom_area_in_grid = false; } } else { if(isset($qode_options_proya['content_bottom_in_grid'])){if ($qode_options_proya['content_bottom_in_grid'] == "no") $content_bottom_area_in_grid = false;} } $content_bottom_background_color = ''; if(get_post_meta($page_id, "qode_content_bottom_background_color", true) != ""){ $content_bottom_background_color = get_post_meta($page_id, "qode_content_bottom_background_color", true); } ?> <?php if($content_bottom_area == "yes") { ?> <?php if($content_bottom_area_in_grid){ ?> <div class="container"> <div class="container_inner clearfix"> <?php } ?> <div class="content_bottom" <?php if($content_bottom_background_color != ''){ echo 'style="background-color:'.$content_bottom_background_color.';"'; } ?>> <?php dynamic_sidebar($content_bottom_area_sidebar); ?> </div> <?php if($content_bottom_area_in_grid){ ?> </div> </div> <?php } ?> <?php } ?> </div> </div> <?php if(isset($qode_options_proya['paspartu']) && $qode_options_proya['paspartu'] == 'yes'){?> <?php if(isset($qode_options_proya['vertical_area']) && $qode_options_proya['vertical_area'] == "yes" && isset($qode_options_proya['vertical_menu_inside_paspartu']) && $qode_options_proya['vertical_menu_inside_paspartu'] == 'no') { ?> </div> <!-- paspartu_middle_inner close div --> <?php } ?> </div> <!-- paspartu_inner close div --> <?php if((isset($qode_options_proya['paspartu_on_bottom']) && $qode_options_proya['paspartu_on_bottom'] == 'yes') || (isset($qode_options_proya['vertical_area']) && $qode_options_proya['vertical_area'] == "yes" && isset($qode_options_proya['vertical_menu_inside_paspartu']) && $qode_options_proya['vertical_menu_inside_paspartu'] == 'yes')){ ?> <div class="paspartu_bottom"></div> <?php }?> </div> <!-- paspartu_outer close div --> <?php } ?> <?php $footer_classes_array = array(); $footer_classes = ''; $paspartu = false; if(isset($qode_options_proya['paspartu']) && $qode_options_proya['paspartu'] == 'yes'){ $paspartu = true; } if(isset($qode_options_proya['paspartu']) && $qode_options_proya['paspartu'] == 'yes' && isset($qode_options_proya['paspartu_footer_alignment']) && $qode_options_proya['paspartu_footer_alignment'] == 'yes'){ $footer_classes_array[]= 'paspartu_footer_alignment'; } if(isset($qode_options_proya['uncovering_footer']) && $qode_options_proya['uncovering_footer'] == "yes" && $paspartu == false){ $footer_classes_array[] = 'uncover'; } $display_footer_top = true; /*$footer_top_per_page_option = get_post_meta($page_id, "footer_top_per_page", true); if(!empty($footer_top_per_page_option)){ $footer_top_per_page = $footer_top_per_page_option; } if (isset($qode_options_proya['show_footer_top'])) { if ($qode_options_proya['show_footer_top'] == "no" && $footer_top_per_page_option == 'no') $display_footer_top = false; }*/ $display_footer_text = true; /*if (isset($qode_options_proya['footer_text'])) { if ($qode_options_proya['footer_text'] == "yes") $display_footer_text = true; }*/ //is some class added to footer classes array? if(is_array($footer_classes_array) && count($footer_classes_array)) { //concat all classes and prefix it with class attribute $footer_classes = esc_attr(implode(' ', $footer_classes_array)); } ?> <?php if($display_footer_top || $display_footer_text) { ?> <footer <?php echo qode_get_inline_attr($footer_classes, 'class'); ?>> <div class="footer_inner clearfix"> <?php $footer_in_grid = true; if(isset($qode_options_proya['footer_in_grid'])){ if ($qode_options_proya['footer_in_grid'] != "yes") { $footer_in_grid = false; } } $footer_top_columns = 4; if (isset($qode_options_proya['footer_top_columns'])) { $footer_top_columns = $qode_options_proya['footer_top_columns']; } $footer_top_border_color = !empty($qode_options_proya['footer_top_border_color']) ? $qode_options_proya['footer_top_border_color'] : ''; $footer_top_border_width = isset($qode_options_proya['footer_top_border_width']) && $qode_options_proya['footer_top_border_width'] !== '' ? $qode_options_proya['footer_top_border_width'].'px' : '1px'; $footer_top_border_in_grid = 'no'; $footer_top_border_in_grid_class = ''; if(isset($qode_options_proya['footer_top_border_in_grid'])) { $footer_top_border_in_grid = $qode_options_proya['footer_top_border_in_grid']; $footer_top_border_in_grid_class = $footer_top_border_in_grid == 'yes' ? 'in_grid' : ''; } $footer_top_border_style = array(); if($footer_top_border_color !== '') { $footer_top_border_style[] = 'background-color: '.$footer_top_border_color; } if($footer_top_border_width !== '') { $footer_top_border_style[] = 'height: '.$footer_top_border_width; } if($display_footer_top) { ?> <div class="footer_top_holder"> <?php if($footer_top_border_color !== '') { ?> <div <?php qode_inline_style($footer_top_border_style); ?> <?php qode_class_attribute('footer_top_border '.$footer_top_border_in_grid_class); ?>></div> <?php } ?> <div class="footer_top<?php if(!$footer_in_grid) {echo " footer_top_full";} ?>"> <?php if($footer_in_grid){ ?> <div class="container"> <div class="container_inner"> <?php } ?> <?php switch ($footer_top_columns) { case 6: ?> <div class="two_columns_50_50 clearfix"> <div class="column1 footer_col1"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_1' ); ?> </div> </div> <div class="column2"> <div class="column_inner"> <div class="two_columns_50_50 clearfix"> <div class="column1 footer_col2"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_2' ); ?> </div> </div> <div class="column2 footer_col3"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_3' ); ?> </div> </div> </div> </div> </div> </div> <?php break; case 5: ?> <div class="two_columns_50_50 clearfix"> <div class="column1"> <div class="column_inner"> <div class="two_columns_50_50 clearfix"> <div class="column1 footer_col1"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_1' ); ?> </div> </div> <div class="column2 footer_col2"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_2' ); ?> </div> </div> </div> </div> </div> <div class="column2 footer_col3"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_3' ); ?> </div> </div> </div> <?php break; case 4: ?> <div class="four_columns clearfix"> <div class="column1 footer_col1"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_1' ); ?> </div> </div> <div class="column2 footer_col2"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_2' ); ?> </div> </div> <div class="column3 footer_col3"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_3' ); ?> </div> </div> <div class="column4 footer_col4"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_4' ); ?> </div> </div> </div> <?php break; case 3: ?> <div class="three_columns clearfix"> <div class="column1 footer_col1"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_1' ); ?> </div> </div> <div class="column2 footer_col2"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_2' ); ?> </div> </div> <div class="column3 footer_col3"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_3' ); ?> </div> </div> </div> <?php break; case 2: ?> <div class="two_columns_50_50 clearfix"> <div class="column1 footer_col1"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_1' ); ?> </div> </div> <div class="column2 footer_col2"> <div class="column_inner"> <?php dynamic_sidebar( 'footer_column_2' ); ?> </div> </div> </div> <?php break; case 1: dynamic_sidebar( 'footer_column_1' ); break; } ?> <?php if($footer_in_grid){ ?> </div> </div> <?php } ?> </div> <?php if (isset($qode_options_proya['footer_angled_section']) && $qode_options_proya['footer_angled_section'] == "yes"){ ?> <svg class="angled-section svg-footer-bottom" preserveAspectRatio="none" viewBox="0 0 86 86" width="100%" height="86"> <?php if(isset($qode_options_proya['footer_angled_section_direction']) && $qode_options_proya['footer_angled_section_direction'] == 'from_left_to_right'){ ?> <polygon points="0,0 0,86 86,86" /> <?php } if(isset($qode_options_proya['footer_angled_section_direction']) && $qode_options_proya['footer_angled_section_direction'] == 'from_right_to_left'){ ?> <polygon points="0,86 86,0 86,86" /> <?php } ?> </svg> <?php } ?> </div> <?php } ?> <?php $footer_bottom_columns = 1; if (isset($qode_options_proya['footer_bottom_columns'])) { $footer_bottom_columns = $qode_options_proya['footer_bottom_columns']; } $footer_bottom_in_grid = false; if(isset($qode_options_proya['footer_bottom_in_grid'])){ if ($qode_options_proya['footer_bottom_in_grid'] == "yes") { $footer_bottom_in_grid = true; } } $footer_bottom_border_color = !empty($qode_options_proya['footer_bottom_border_color']) ? $qode_options_proya['footer_bottom_border_color'] : ''; $footer_bottom_border_width = isset($qode_options_proya['footer_bottom_border_width']) && $qode_options_proya['footer_bottom_border_width'] !== '' ? $qode_options_proya['footer_bottom_border_width'].'px' : '1px'; $footer_bottom_border_in_grid = 'no'; $footer_bottom_border_in_grid_class = ''; if(isset($qode_options_proya['footer_bottom_border_in_grid'])) { $footer_bottom_border_in_grid = $qode_options_proya['footer_bottom_border_in_grid']; $footer_bottom_border_in_grid_class = $footer_bottom_border_in_grid == 'yes' ? 'in_grid' : ''; } $footer_bottom_border_style = array(); if($footer_bottom_border_color !== '') { $footer_bottom_border_style[] = 'background-color: '.$footer_bottom_border_color; } if($footer_bottom_border_width !== '') { $footer_bottom_border_style[] = 'height: '.$footer_bottom_border_width; } if($display_footer_text){ ?> <div class="footer_bottom_holder"> <?php if($footer_bottom_border_color !== '') { ?> <div <?php qode_inline_style($footer_bottom_border_style); ?> <?php qode_class_attribute('footer_bottom_border '.$footer_bottom_border_in_grid_class); ?>></div> <?php } ?> <?php if($footer_bottom_in_grid){ ?> <div class="container"> <div class="container_inner"> <?php } ?> <?php switch ($footer_bottom_columns) { case 1: ?> <div class="footer_bottom"> <?php dynamic_sidebar( 'footer_text' ); ?> </div> <?php break; case 2: ?> <div class="two_columns_50_50 footer_bottom_columns clearfix"> <div class="column1 footer_bottom_column"> <div class="column_inner"> <div class="footer_bottom"> <?php dynamic_sidebar( 'footer_text_left' ); ?> </div> </div> </div> <div class="column2 footer_bottom_column"> <div class="column_inner"> <div class="footer_bottom"> <?php dynamic_sidebar( 'footer_text_right' ); ?> </div> </div> </div> </div> <?php break; case 3: ?> <div class="three_columns footer_bottom_columns clearfix"> <div class="column1 footer_bottom_column"> <div class="column_inner"> <div class="footer_bottom"> <?php dynamic_sidebar( 'footer_text_left' ); ?> </div> </div> </div> <div class="column2 footer_bottom_column"> <div class="column_inner"> <div class="footer_bottom"> <?php dynamic_sidebar( 'footer_text' ); ?> </div> </div> </div> <div class="column3 footer_bottom_column"> <div class="column_inner"> <div class="footer_bottom"> <?php dynamic_sidebar( 'footer_text_right' ); ?> </div> </div> </div> </div> <?php break; default: ?> <div class="footer_bottom"> <?php dynamic_sidebar( 'footer_text' ); ?> </div> <?php break; ?> <?php } ?> <?php if($footer_bottom_in_grid){ ?> </div> </div> <?php } ?> </div> <?php } ?> </div> </footer> <?php } ?> </div> </div> <?php wp_footer(); ?> </body> </html>
That is the code from my footer.php file in the root of my theme folder. Third line from the bottom is: <?php wp_footer(); ?>
- This reply was modified 6 years, 1 month ago by jaatendi.
Forum: Plugins
In reply to: [Remove Category URL] Removing Slug on Custom Post TypeWas confused turns out I had a function to do this. Thanks!
Found it. Line 78 in template-functions.php file.
fixed CSS issue, creating a new topic for text issue.
Forum: Fixing WordPress
In reply to: ? Being added to beginning of page titleThanks, I switched to the 2017 theme and the problem was no longer there. I am using a custom theme I developed. I now understand the problem a bit more, but don’t know how to solve it.
Thanks for the answer, ideally I would like hide only for logged in users, but the CSS tweak would make it always hidden, even for non-logged in users.
Oh awesome, I just found this:
https://docs.easydigitaldownloads.com/article/268-creating-custom-add-to-cart-links
Still learning my way around the forum, thank you!