bguy0501
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] trouble linking local javascript file to websiteI have tried using every form of enqueueing I’ve found online. Below is an example of one that I’ve tried.
‘<?php
function wp_adding_scripts() {
wp_register_script(‘myscript’, get_stylesheet_directory_uri()(‘/js/script.js’), array(‘jquery’),’1.1′, true);
wp_enqueue_script(‘myscript’);
}add_action( ‘wp_enqueue_scripts’, ‘wp_adding_scripts’ );
?>’
Forum: Themes and Templates
In reply to: [Customizr] Changing background color and font of comment boxesThanks. It just seemed like all of the elements I was having difficulties with had that. I’ll keep trying.
Thanks again.
Forum: Themes and Templates
In reply to: [Customizr] Changing background color and font of comment boxesDo you think it makes a difference if before the selectors in development tools it shows’media=”all”?’
Forum: Themes and Templates
In reply to: [Customizr] Changing background color and font of comment boxesIt seems like it is mainly elements towards the bottom of the page I’m have issues with. I can change colors and whatnot in the header and widget just fine.
Forum: Themes and Templates
In reply to: [Customizr] Changing background color and font of comment boxesI’m testing these changes in the Custom CSS panel in Advanced Options. I’m able to make all of the changes while in development tools in Chrome and they look just fine. I’ve also been able to make changes to elements within the shareaholic plugin on the same page that work using Custom CSS, so I was thinking it wasn’t a caching issue. Also, regarding the shareaholic plugin CSS changes, I used the exact series of selectors that were shown in development tools and the changes worked just fine. I’m thinking there is just something else in the theme that is blocking these changes.
Forum: Themes and Templates
In reply to: [Customizr] Changing background color and font of comment boxesYeah, I’ve tried that. I’ve found selectors using “inspect the element” in Chrome that actually work, but there must be something different when I added to my CSS.
When I change the background for .comment article, .pingback article, .trackback article to a different color while in Chrome, it works. Im thinking there may be other things I need to add at the beginning such as div or li. Any ideas?
Thanks so much for responding.
Forum: Themes and Templates
In reply to: [Customizr] My logo does not show up on mobile devicesThanks for the suggestions.
I tried all of the mobile options on mobiletest.me. The only one my logo shows up on is the ipad mini.
It also doesn’t appear to be plugin conflict. It showed up fine in mobile tests before, so I thought a plugin update may have been the issue. I may just have to wait until I get the site online to see if it is just a problem while it’s on my local server.
Thanks again!
Forum: Themes and Templates
In reply to: [Customizr] My logo does not show up on mobile devicesSorry, I only have it set up on a local server right now. I’m just trying to verify the mobile friendliness through mobiletest.me. Any suggestions to try will be greatly appreciated.
I figured out why it was showing the code. I still had the CSS and JavaScript Toolbox plugin enabled which was also trying to link those files to the page. When I disabled the plugin the code went away. The page still doesn’t function correctly though.
Here’s a link to the page.
https://www.schultzoutdoorsports.com/test/It seems like it’s finding the files just fine, it’s just not recognizing what the code is telling it to do. Not sure why that would happen.
Thanks.
I originally had it hardcoded just to see how it would look but it broke whenever I would update plugins.
I did not have wp_head() included in my file. I tried the below code in the head section of the page and it partially worked.
<?php add_action('home_page_files'); wp_head(); ?>
I could tell some of the styling was updated, but it didn’t look like any js was applied. It actually showed all of the js and css code from my linked files on the page. Do I need to add jQuery as a dependency on this page too, or would the plugin take care of that?
Thanks again for your help.
Thank you so much for your feedback. I tried the below code in the head section of my custom home page along with the plugin coded above and it broke my site. Any ideas?
<?php function home_page_script() { wp_enqueue_script( 'add-home-js' ); } add_action( 'wp_enqueue_scripts', 'home_page_script' ); ?> <?php function home_page_style() { wp_enqueue_style( 'add-home-css' ); } add_action( 'wp_enqueue_style', 'home_page_style' ); ?>