Sykat
Forum Replies Created
-
If u share ur site then I can tell which class you have to edit to what.
Forum: Fixing WordPress
In reply to: How to add contents in wp header for a custom post template?understood. though this is not the proper solution I can go with it. And I will examine a plugin (like Youst seo) or theme that can add custom codes in header to get the code.
Forum: Fixing WordPress
In reply to: How to add contents in wp header for a custom post template?I am actually looking something like this (Based on ur code and untested)
function load_some_header() { if ( is_page_template('single-album.php') ) { echo '<script>Codes goes here</script>'; //that should add some code in header } } add_action( 'wp_enqueue_scripts', 'load_some_stylesheet' );
But I wonder load_some_header() is existed or not.. but there are some way. I actually adding a slider. I coded the slider in a file like (theme
)/mods/slider.php and added it in (theme)/cmhome.php (that is my homepage post template.)
I like to add the codes (that add something in header) in slider.php than header.php.
An simple example can clear it. What i have to do with slider.php to add <script></script> within <head>?Forum: Fixing WordPress
In reply to: How to add contents in wp header for a custom post template?thank you. But the thing I am caring about my site i blazing speed.. I am making a theme that only have the functions and ability that my site requires only. If I do your trick then it may be ok but I don’t want those css for my other pages. So why increase css file size?
And what if I want to add a js, extra meta tags or something in header?
As an example, onee jquery for gallery post types?Forum: Fixing WordPress
In reply to: How to add a code on header for homepage only?Thanks
Forum: Fixing WordPress
In reply to: Admin area (dashboard) loading Very slowMy site’s pages average 4 second loading time and wp-admin have around 7-8 second. But at an average speed, 30 second is ridiculous. wp-login page is very small. Don’t mention it. And which kiind of hosting u r using? It seems a “tasks limit” and “maximum request problem”. can u say your hosting plan?
Forum: Fixing WordPress
In reply to: Text flows into sidebar on all pagesYour site is loading all day long..
Forum: Fixing WordPress
In reply to: How to add a code on header for homepage only?You forget to mention the file I have to insert it. Where to add this code? I guess theme’s header.php. is it?
Forum: Fixing WordPress
In reply to: Line Spacing in PageAre u using wordpress.com blog?
Forum: Fixing WordPress
In reply to: Need to remove featured image from blog post, not home siteR u kidding? A single.php is something like that:
<?php get_header(); ?> <main role="main"> <!-- section --> <section> <?php if (have_posts()): while (have_posts()) : the_post(); ?> <!-- article --> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <!-- post thumbnail --> <?php if ( has_post_thumbnail()) : // Check if Thumbnail exists ?> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php the_post_thumbnail(); // Fullsize image for the single post ?> </a> <?php endif; ?> <!-- /post thumbnail --> <!-- post title --> <h1> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h1> <!-- /post title --> <!-- post details --> <span class="date"><?php the_time('F j, Y'); ?> <?php the_time('g:i a'); ?></span> <span class="author"><?php _e( 'Published by', 'html5blank' ); ?> <?php the_author_posts_link(); ?></span> <span class="comments"><?php if (comments_open( get_the_ID() ) ) comments_popup_link( __( 'Leave your thoughts', 'html5blank' ), __( '1 Comment', 'html5blank' ), __( '% Comments', 'html5blank' )); ?></span> <!-- /post details --> <?php the_content(); // Dynamic Content ?> <?php the_tags( __( 'Tags: ', 'html5blank' ), ', ', '<br>'); // Separated by commas with a line break at the end ?> <p><?php _e( 'Categorised in: ', 'html5blank' ); the_category(', '); // Separated by commas ?></p> <p><?php _e( 'This post was written by ', 'html5blank' ); the_author(); ?></p> <?php edit_post_link(); // Always handy to have Edit Post Links available ?> <?php comments_template(); ?> </article> <!-- /article --> <?php endwhile; ?> <?php else: ?> <!-- article --> <article> <h1><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h1> </article> <!-- /article --> <?php endif; ?> </section> <!-- /section --> </main> <?php get_sidebar(); ?> <?php get_footer(); ?>
That is very basic single.php. Go to wpadmin>Appearance>Editor>single.php then copy all code and edit above code and pest there.
Forum: Fixing WordPress
In reply to: Need to remove featured image from blog post, not home siteCan u share single.php? then I can say which code you have to remove to disable featured post of image
Forum: Fixing WordPress
In reply to: New User – Why are there no paragraph breaks in my posts?For code editor (TEXT)
<p>Bla Bla Bla</p> <p>Another Bla</p> <p>Another Another Bla</p>
For Visual editor:
Bla Bla Bla Another Bla Another Another Bla
If all of those doesn’t work then your theme’s css have problem, in that case, ultimate solution:
Code editor:<div>Bla Bla Bla</div> <div>Another Bla</div> <div>Another Another Bla</div>
And the funny thing is ” is html code of space. ”
Forum: Fixing WordPress
In reply to: Changing website address possible?You have to buy a domain.
Setup DNS.
Update dns record of hosting.
When u update the dns, u can no longer access your site.
Login to phpmyadmin>click on your site’s database>click on wp_option table>Editsiteurl
andhome
.Forum: Fixing WordPress
In reply to: https://localhost/phpmyadmin/index.php 404 errorCan’t you use Xampp? Nobody can say what was happened with your project with this little information..
Forum: Fixing WordPress
In reply to: Need to remove featured image from blog post, not home siteDepends on theme u using. share your single.php