James G
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moving header image to top of pagePS be sure that you actually cut the code from line 48 and below down to <?php endif; ?> and when you paste it, make sure that you don’t paste it over the other code thustly deleting something that’s needed.
Forum: Fixing WordPress
In reply to: Moving header image to top of pageMove this code from line 48 of the header.php. Cut and paste this`<?php $header_image = get_header_image();
if ( ! empty( $header_image ) ) : ?>
<a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”><img src=”<?php echo esc_url( $header_image ); ?>” class=”header-image” width=”<?php echo get_custom_header()->width; ?>” height=”<?php echo get_custom_header()->height; ?>” alt=”” /></a>
<?php endif; ?>`To just below this at line 36
<header id="masthead" class="site-header" role="banner">
and that will move the header up above everything.Forum: Fixing WordPress
In reply to: Changing home page back to a blogWhen you set a homepage before did you set a template file in the page attributes for the homepage? I think its right side of the wysiwyg editor. If you set a page template file for any of the pages, blog or homepage, it will mess you up every time, lol.
Forum: Themes and Templates
In reply to: Adding css styles in themes via text input in admin panel w/php?Yeah, I see your points. I really do, (not to be a complainer, just drunk and tired at the moment) but when you have gone around the web like 40 times looking for the answers from php sites, wordpress forums and the like – because you dont want to be a bother on the wordpress forums and then you finally end up on www.ads-software.com asking and still get no responses, lol, it gets kind of frustrating. Especially when you have seen a simple thing like “displaying background-image into css using php to echo a variable input field result into your theme to change a background image for a footer or the color of a text tag (say like the H1 or H3 or whatever)” in alot themes on themeforest, You know someone knows how o do it, lol. Anyways, I guess I am not really forum savy and maybe if it were so simple I would have got it working by now. I just hope someone can help me with this one because I have been working on it for 3 days and getting keyboard marks in my forehead, lol
Forum: Themes and Templates
In reply to: Adding css styles in themes via text input in admin panel w/php?Ok, so why do some post get answered by like 30 people a minute for days and some posts go unanswered for days? I mean….. really????
Ah, I’ll just go with adding some arrays, input areas and echoing or printing get_option, lol. I mean, displaying the address of an event is just about as basic and the most pertinent info as can be obtained, I cant imagine why this feature is a pro version item. I mean, I don’t know the locations my visitors are going to enter so it makes no sense to have locations that only I can add and have them choose from and it would be a particular P.I.T.A. to add every single address in the U.S. so…. Well, Anyways, I’ll just sort it out myself.
jantenner, I will send you a file or 2 when I finish it.Forum: Themes and Templates
In reply to: [Mantra] Menu styleOk, your gonna want to change these then
.nav li li a { background: none repeat scroll 0 0 #1B1B1B; color: #C9C9C9; }
thats the drop down background and then your gonna want to change this for the dropdown background
.nav li ul { background: none repeat scroll 0 0 #FF0000; }
Just change the backgroud-color: to what ever hex value you like. If you need the hex values try this link for a color picker hex value generator https://www.colorpicker.com/ you can drag around to get to the color you want and the hex value is at the top just above the color picker. Hope this helps.
Forum: Themes and Templates
In reply to: Hero theme – Can't identify code for elements I want to removeWhat do you wish to remove? If its simply color changes or some items in your css, you should try either firebug in Firefox or the google chrome built in development tools. They are the very easiest ways to identify and locate any css that your looking for. If your looking to remove things like grid areas, containers ect, you will need to know html fairly well. And for the wordpress php portions in your template, you can use Firebug in FF to find the container or div id or class that they are in and that’s where you go look for it in your template files. Can you post up what you want removed specifically?
Well, I ended up just getting some from the default Buddypress theme. Hey dont judge me, it works, lol. ??
Forum: Themes and Templates
In reply to: [Mantra] Menu styleSame way with any other css you may have for those items, you can also add that to your stylesheet as long as you remember the !important mark in your style item. Hence (color:#ffffff !important;). the “!important” mark makes this style item overwrite any style item with the same class or id in this or any other stylesheets. Let me know if this works for you.
Also, one more note, dont forget the id or class marker at the beginning of the style item. like so ( .dotisforaclassofsomethingIwantStyled {} and #hashtagforidofsomethingIwantStyled {} ) the . or the # are important.Forum: Themes and Templates
In reply to: [Mantra] Menu styleHere is how you should write it
#access ul li.current_page_item, #access ul li.current-menu-item { background-color:#333333 !important; }
And
#access ul li.current_page_item > a, #access ul li.current-menu-item > a{ color:#ffffff !important; }
Forum: Themes and Templates
In reply to: page template show postsGot It! Thank you alchymyth for your help with this. I knew it was something simple, lol. Have a great day!
lol, cool, I just added
<?php header_style(); ?>
inside my head and my header image now shows but pushes everything in it to the left, So now a I think I just need to work out my css.Ok, I see that I have not called that in my head. Please excuse this question if its pointless but (I am an html css expert that just got into wordpress themes about 4 months ago and have little php experience with the exception of what I have learned from the codex so far) so with that in my head will I simply write it like
<?php header_style(); ?>
or will I need to define something like this<?php header_style( 'custom-header' ); ?>
? Sorry for my ignorance….