claybaby
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Analytics Adder With User Id Tracking] USER_IDsame. I added this to my functions.php, but I don’t think it’s working
function set_global_variable_ga(){ global $ga_userId; } add_action('wp_login', set_global_variable_ga);
Forum: Themes and Templates
In reply to: syntax questionIs this a PHP question?
Forum: Themes and Templates
In reply to: theme breaks galleryNo, it’s definitely a theme issue.
Forum: Plugins
In reply to: [The Events Calendar] custom theme and default event stylingI meant to close this today, but forgot to. thanks for you reply. the issue: I wasn’t called wp_head or wp_footer in the theme. Hello!
thanks again
Forum: Plugins
In reply to: [The Events Calendar] local installationnot a server versus local issue, theme issue instead.
Forum: Plugins
In reply to: [The Events Calendar] jQuery and Page TitlesSort of off topic, but you mention what I’m looking for in your question: “overriding default plugin styles/templates with custom in the wp-content/themes/my-theme/tribe-events as instructed in documentation.” I want to do that, override default plugin styles. I also using bootstrap 3. I couldn’t find this in the documentation.
Forum: Hacks
In reply to: javascript fail to loadthanks for the lengthy reply. I have a number of follow-up questions, maybe you can help.
1.wp_enqueue_script()
: I looked at the codex page and this guy’s page. I think I have an idea what’s needed for thewp_enqueue_script()
, but how do I use it? Can I just<?php wp_enqueue_script('$handle, etc)?>
in the header?
On the page linked above he starts talking aboutwp_print_scripts
. Huh? I sense a rabbit hole, though maybe I just need to dive in and learn this stuff.
2. This maybe out of this site’s scope, but I actually have 6 different javascript “calculators” and six similar on-page scripts to call the functions in said calculators. I can’t call each script b/c they each call the ‘onclick’ event but with different variables… Maybe I just answered my own question: enqueue the functions, call the script on the page.The deeper I get into development the more I realize using another person’s work is way more challenging than creating stuff from scratch.
Forum: Themes and Templates
In reply to: Local Child theme breakingwow, thanks. guess i should’ve known that.
Forum: Fixing WordPress
In reply to: Codex Confusion URL settingsBut do you see that those pages have the exact opposite pieces of information? It doesn’t matter if I’m changing the site or setting up a new site “Site URL” has only one meaning not two:
Site Address (URL)
Enter the address you want people to type in their browser to reach your WordPress site.versus
The “Site URL” setting is the address where your WordPress core files reside.
same for “WordPress Address” aka “Home”
Forum: Fixing WordPress
In reply to: get_posts() pulling incorrect datathanks cpettican, that’s what I was looking for!
Forum: Themes and Templates
In reply to: how to display one postForum: Themes and Templates
In reply to: how to display one postthanks tara, the code on that link didn’t quite work but it lead me to https://www.ads-software.com/support/topic/get_posts-pulling-incorrect-data, which did work for me.
thanks again.
Forum: Themes and Templates
In reply to: Drop-Down confusionthanks paul, i stared at the source code for a half an hour before figuring out what to change in the CSS, and it worked!
Forum: Themes and Templates
In reply to: Drop-Down confusion@paulwpxp
I understand what you’re saying, different html results in different CSS/javascript, but what I don’t understand is where or from where the wp_nav_menu() delivers html.
If I have to write new code for the header, that’s fine, but does the wp_nav_menu() deliver a series of
li’s?Forum: Themes and Templates
In reply to: Drop-Down confusionI found a great article on using CSS to create disappearing drop-downs here. It looks to be in my wheelhouse, however, I’m a little confused about the wp_nav_menu call versus the source code.
In the article the author indicates that you have to place the wp_nav_menu call into the header, much like the codex article does. Then she refers to the “source code” which includes two unordered lists and list items.
The Custom WordPress Menu that you have produced is an un-numbered list and if you look at the source code that is produced, it will be something like:
What follows is a pretty simple html ul. But where is it?
Where is this myserious source code? I want access so that I can know how to format the CSS. It’s not in the header.php file and I’ve looked everywhere I can think of.