emilyTK
Forum Replies Created
-
The code you posted above is probably not unnecessary unless you are trying to break your theme.
Try doing this to Avada’s function.php and embrace the chaos:
// Initialize social icons setup //require_once( get_template_directory() . '/framework/class-social-icons.php' ); //global $social_icons; //$social_icons = new Avada_SocialIcons();Forum: Themes and Templates
In reply to: Developing A Custom Theme – Static Front Page And Blog Page.If you tell WordPress to make an About page, then yes, it will wrap your content into page.php.
For posts, you might take a look at content.php.Forum: Themes and Templates
In reply to: Developing A Custom Theme – Static Front Page And Blog Page.Front-page.php handles the front page if it exists. Otherwise, WP will fall back to index.php, just like you said earlier.
For example code, you could always browse WP theme repositories:
https://themes.svn.wordpress.org/Forum: Themes and Templates
In reply to: Developing A Custom Theme – Static Front Page And Blog Page.Page.php handles the main content of any pages you create in your wp-admin, while index.php handles the classic WordPress blog front page. If you chose to have a static front page, then that, too, would be handled by the page.php script.
Forum: Fixing WordPress
In reply to: Searches: How to exclude tags or categories from search result?Huh, okay. Maybe you could rethink the order of it all, and use categories for the one group, and tags for the other. You could then tell WordPress to show only categories (or tags) in search results.
Or, you could try to find a plugin that lets you add extra tags and categories which are treated entirely different from WordPress tags, so that they won’t show up at all, but could still generate a post collection page when someone clicks them.
I’m afraid I don’t have the PHP know-how to have a lot more guesses about solutions. I’m only an HTML/CSS person who happened to find your thread when searching for a solution to my own problem. 🙁
Oh, but here is a guide on how to make a child theme:
http://codex.wordpress.org/Child_Themes
You will need FTP access to your WordPress installation though.Forum: Fixing WordPress
In reply to: Searches: How to exclude tags or categories from search result?This is what I did in content.php in my child theme:
Here’s the original script:
<?php the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>The code says: On any page, include an area for tags.
This is what I changed it to:<?php if( !is_search() ) the_tags( '<footer class="entry-meta"><span class="tag-links">', '', '</span></footer>' ); ?>The new code says: On any page that isn’t search, include an area for tags.
Forum: Themes and Templates
In reply to: Different style for category and subcategoryPlease give a link to your website. It all depends on what you have.
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Featured Images ?Heya,
can you give me a link to an example site where the image doesn’t fill the whole width?Forum: Themes and Templates
In reply to: Enable Mobile View on TabletsHummm, does your site look overall different on your Kindle from how it looks when you resize the browser window on your PC to 600px?
Maybe you should just contact WPTouch support directly. Because they really know that plugin way better than anyone here. You can ask a question in their support forum here:
https://wordpress.org/support/plugin/wptouch
They also have a knowledge base on their website here:
http://www.wptouch.com/support/knowledgebase-category/troubleshooting/Hope it’ll turn out fine for you
Forum: Themes and Templates
In reply to: [Enigma] how to disable google fontMay the super speeds of the interwebz be with you, my friend!
Forum: Themes and Templates
In reply to: [Enigma] how to disable google fontAha! I found the bugger!
He is in
enigma\core\scripts\css_js.phpIn your child theme, just remove lines 12-18.
Forum: Themes and Templates
In reply to: [Finch] From color to background pictureThis is what you need:
body { background: #293136 url(http://hearthstonenorge.no/hearthstone.jpg); color: #293136; font-family: 'Oxygen',sans-serif; font-size: 16px; }You set your path to the image wrong. You navigate to it from the folder your stylesheet is in.
Forum: Themes and Templates
In reply to: [Finch] From color to background pictureFor starters, there is definitely something wrong with your CSS and spelling:
body { background: #293136 url(heartstone.jpg); color: #293136; }You’re missing brackets, and you have an invalid space between
urland()
You should also figure out if it is eitherhearthstoneorheartstone. You should as well find the correct path to your image.I can’t even look at your page, because you linked it wrong.
Yay!
And, oh yes, there is. Margins and paddings are part of a concept that has been named the CSS box model. This is where it all started:
http://www.w3.org/TR/CSS2/box.htmlThey have an illustration of said box on the website.
As funny as it sounds: Some browsers interpret a box a little different than others, but I suppose that shouldn’t worry you at this point.