tabatha.j22
Forum Replies Created
-
Hi Kris,
I hope you are well. I ran tests by adding the domain names in the Prefetch DNS or Preconnect together and individually but there was no deference in regards to speed. There’s something else that’s causing the content delay using MS OneDrive. I could live without using it on the site, but it does have its benefits. One thing that I know for sure is that things would be much slower if I wasn’t using your plugin.
Thanks again!
Hi Kris,
I am embedding a few things from my OneDrive account to my site but it takes about 8 seconds to load that content. I was hoping that making an early connection would speed things up.
I was thinking about adding the domain name in Hummingbird -> Advanced Tools -> Prefetch DNS or Preconnect.
These are the two domain names that I see in my browser console… https://api.onedrive.com and https://1drv.com.
Do you think it would make a difference? If so, should I add those domain names in one of the settings box in the Advanced Tools?
Thank you!
Forum: Themes and Templates
In reply to: [GeneratePress] Add new sidebar locationI hope you are doing well. I really appreciate you helping me with this. Everything is working perfectly.
Thank you very much!
Forum: Themes and Templates
In reply to: [GeneratePress] Add new sidebar locationThank you for the quick response.
I did this and it seems to work…
<?php /** * GeneratePress child theme functions and definitions. * * Add your custom PHP in this file. * Only edit this file if you have direct access to it on your server (to fix errors if they happen). */ function my_inside_container_widgets_init() { register_sidebar( array( 'name' => 'Inside Container Sidebar', 'id' => 'inside-container-sidebar', 'before_widget' => '<aside id="%1$s" class="widget inner-padding %2$s">', 'after_widget' => '</aside>', 'before_title' => apply_filters( 'generate_start_widget_title', '<h4 class="widget-title">'), 'after_title' => apply_filters( 'generate_end_widget_title', '</h4>' ), ) ); } add_action('widgets_init','my_inside_container_widgets_init'); add_action( 'generate_inside_container', function() { dynamic_sidebar( 'inside-container-sidebar' ); } );
Is that what you said to do?
Also, thank you for showing me the shortcode option. That’s pretty cool and I may use that in the future for something else.
I greatly appreciate your help. Thanks!
I’ll give it a try.
Thanks!
Forum: Themes and Templates
In reply to: [GeneratePress] Icon next to the titleUsing flexbox definitely works. The reason we are trying to get the icon within the title is so that we can call the title in some of our widgets and the icons are automatically pulled.
If generate_inside_entry_title existed then that would do it, but it’s understandable why the theme doesn’t have it since the need for making changes to the title section would be rare.
Thanks for taking the time to assist, Leo. Your name comes up a lot. You do good work for GeneratePress.
I’ll mark this as resolved. Thanks again!
Forum: Themes and Templates
In reply to: [GeneratePress] Icon next to the titleHi Leo,
I’m testing the theme locally. I am able to get the icon next to the title using absolute positioning on the image, but the issue is that I would need to add a left margin on the entry title to offset the image’s width.. We have a lot of posts and we don’t put icons next to all of the titles.
Most people wouldn’t need a hook like, generate_inside_entry_title, which makes sense why it’s not an available hook.
Do you think there is another way other to get the images next to the title?
Thanks!
Forum: Themes and Templates
In reply to: [Responsive] Always horizontal scrollbarI apologize for replying to this thread but I was going to ask this same question about the scroll bar.
As @bengans mentioned it happens when the “Full Width Main Navigation” is enabled.
When it is enabled it gives this CSS…
.site-header-layout-vertical.site-header-full-width-main-navigation .main-navigation { margin-left: calc( 50% - 50vw ); margin-right: calc( 50% - 50vw ); max-width: 100vw; width: 100vw; }
I was able to make CSS changes that removed the horizontal scroll but my brother mentioned that doing that will cause layout issues. We are doing our best to eliminate using a child theme and want to avoid making changes to template files.
I basically only enable the full width navigation so I can have 2 different full width background colors for the navigation menu and the logo/header widget section.
I forgot to mark this as resolved. Thanks again.
Hi Predrag,
That’s great news. I thought that option meant something different. Silly me ??. I appreciate the prompt reply. This plugin is perfect and everything is working great.
Thanks again!
Forum: Themes and Templates
In reply to: [Responsive] Current CSS grid systemHello. I should have made my question clearer.
We have been using the new grid system but they lack responsiveness.
Here’s one example that we used using the new themes classes…
<div class="row"> <div class="col-md-4">Third</div> <div class="col-md-4">Third</div> <div class="col-md-4">Third</div> </div>
They sit side by side on large devices, however they don’t stack on top of each other for medium devices because the responsive media queries for these new classes are the same for every break point.
The CSS style for .col-md-4 is:
.col-md-4
{padding-left: 15px;
padding-right: 15px;
width: 33.3333333333%;
}However, you have the responsive media query break point the same for all the break points:
@media (min-width: 768px) { .col-md-4 { padding-left: 15px; padding-right: 15px; width: 33.3333333333%; }
Forum: Themes and Templates
In reply to: [Responsive] Custom Font with Font FaceYou could try copying/pasting the code below. There is an issue with your single and double quotes. Hopefully, that is the reason for it.
@font-face { font-family: "TrueNorth"; src: url("www.homefromhomepetcare.co.uk/wp-content/Font/3AC3A6_0_0.ttf") format('truetype'); src: url("www.homefromhomepetcare.co.uk/wp-content/Font/3AC3A6_0_0.eot"); src: url("www.homefromhomepetcare.co.uk/wp-content/Font/3AC3A6_0_0.woff") format('woff'); src: url("www.homefromhomepetcare.co.uk/wp-content/Font/3AC3A6_0_0.woff2"); font-weight: normal; } h1 { font-family: "TrueNorth", True North; } h2 { font-family: "TrueNorth", True North; }
Forum: Themes and Templates
In reply to: [Responsive] Big gap below header – responsive 4.0You could try adjusting the margins on the first two classes/id below. If you really need to tightened even more you could adjust the padding on #wrapper. I tested this before but ended up liking the default theme margins but below were from my own test.
img.custom-logo { margin: 20px 0; } Example: Change to margin: 5px 0 !important; #wrapper, #wrapper body.home #wrapper { margin: 20px auto 0; } Example: Change to margin: 5px auto 0 !important; #primary, body.page.page-boxed #primary, body.page.page-content-boxed #primary, body.page.page-fullwidth-content #primary, body.single.single-boxed #primary, body.single.single-content-boxed #primary, body.single.single-fullwidth-content #primary { padding: 20px; } Example: Change to padding: 0 20px 20px 20px !important;
- This reply was modified 5 years, 2 months ago by tabatha.j22.
Forum: Plugins
In reply to: [WP-PostRatings] W3 Total CacheI don’t use W3 so I don’t know if it works, but here’s the code that was on that webpage…
/** * Get WP-PostRatings via ajax * * Useful when using cache plugins like WP Super Cache or W3 Total Cache * */ function ac_get_rating_ajax($postID) { // Create nonce - security measure $nonce = wp_create_nonce('display-rating'); // Placeholder HTML that will get replaced when the rating loads $out .= '<div id="ac-ratings-wrap-' . $postID . '">'; $out .= '<p>Just a moment please...</p>'; $out .= '</div>'; // Script to get the rating $out .= '<script type="text/javascript">'; $out .= 'jQuery(document).ready(function($) {'; $out .= '$.ajax({'; $out .= 'url : "' . admin_url( 'admin-ajax.php' ) . '",'; $out .= 'dataType: "jsonp", '; $out .= 'data : { "id" : "' . $postID . '", "_ajax_nonce" : "' . $nonce . '", action : "ajax_display_rating" }, '; $out .= 'success : function(response) { $("#ac-ratings-wrap-' . $postID . '").html(response.output); }'; $out .= '});'; $out .= '});'; $out .= '</script>'; // Return it return $out; } // Hook ajax function into admin-ajax.php add_action( 'wp_ajax_nopriv_ajax_display_rating', 'ac_ajax_display_rating' ); add_action( 'wp_ajax_ajax_display_rating', 'ac_ajax_display_rating' ); // Ajax function function ac_ajax_display_rating() { // Nonce $nonce = $_GET['_ajax_nonce']; if ( !wp_verify_nonce( $nonce, 'display-rating' ) ) die('Security check'); // Check Ajax referer if ( !check_ajax_referer( 'display-rating', '_ajax_nonce', false ) ) die('Security check'); global $wpdb; // SQL injection protection $postID = $wpdb->escape($_GET['id']); if ( !is_numeric($postID) ) die('error'); // Return the rating display (not echo) $out = the_ratings( 'div', $postID, false ); // Encode and echo $arr = array( 'output' => $out ); $arr = json_encode($arr); echo $_GET['callback'] . '(' . $arr . ');'; // Callback is generated by jQuery exit(); }
Forum: Plugins
In reply to: [WP-PostRatings] structured data error after installing the pluginI realized earlier that in your FAQ section you already show how to change the Schema type. Thanks.