virmodrosti
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to add banner under 3rd paragraph on every post?This is my code in single.php:
<?php get_header(); ?>
<!– Begin Content –>
<div id=”content”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><?php if(function_exists(‘wp_print’)) { print_link(); } ?>
<div class=”post”>
<div class=”p-heading”><h1><?php the_title(); ?></h1></div>
<div class=”p-content”>
<?php the_content(); ?>
<?php wp_link_pages(array(‘before’ => ‘<p>Pages: ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>
<?php the_tags( ‘<p>Tags: ‘, ‘, ‘, ‘</p>’); ?>
<?php edit_post_link(‘Edit this entry.’, ‘<p>’, ‘</p>’); ?>
<script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– Responsive Ad –>
MY RESPONSIVE CODE
</script>
</div>
<div class=”p-info”><?php the_time(‘j.m.Y’) ?> | <?php the_category(‘, ‘); ?></div>
</div><div id=”content-a”>
Currently I have set code under all paragraphs at the end of each post, which is easy just add fixed code inside, but I would like if possible to add code without using any plugins to have under 3rd paragraph on each post.
Forum: Fixing WordPress
In reply to: How to add more values for post id in functions.php?Yes you are right. Someone from technicians please transfer this post to appropriate subforum. thank you.
Forum: Fixing WordPress
In reply to: How to make custom single.php for specific postsGreat. Do I need to include this code into single.php or somewhere else? I have 2 adsense units on my pages and would need to change both locations in php. One adsense is located in the sidebar and the other on the article area.
Forum: Fixing WordPress
In reply to: How to change wordpress general settings without loginDone. Thank you.
Forum: Fixing WordPress
In reply to: How to hide category url?I’ve tried that but it doesn’t work.
Forum: Fixing WordPress
In reply to: How to remove all wordpress “page” slugs?I tried that but the style contains two slashes.
mydomain.com//01
mydomain.com//02
mydomain.com//03Thanks for answer anyway.
Forum: Fixing WordPress
In reply to: How to change meta description for archive pages only?Thanks!
Forum: Fixing WordPress
In reply to: Proper settings for h2 instead of strongvirmodrosti.com/hranila/vsi-priporoceni-dnevni-vnosi-hranil-na-enem-mestu/
here are three paragraphs using table, if I change that text under each paragraph from strong to h2, it doesn’t stay the same, because wordpress usually atuomaticly adss <p></p> to every strong tags. So i neded to know hot setup h2 in the css, to look the same as strong tags.
- This reply was modified 7 years, 5 months ago by virmodrosti.
Forum: Fixing WordPress
In reply to: How to disable archive listing from wordpress?I would like to do it without plugin, that’s why I asked.
Forum: Fixing WordPress
In reply to: How to change all strong entries with h2?Can you tell me how will it look if I put code in function.php?
All I want is to leave the current posts with and only use somekind of rewrite command, that goes over to all tags.
Something like that?
add_filter( ‘the_content’, ‘change-strong-tags’ );
function change-strong-tags( $content ) {
if ( is_singular(‘post’) && has_post_thumbnail()) {
post_content = replace(post_content, ‘‘, ‘</h2>’);
}
return $content;
}Forum: Fixing WordPress
In reply to: How to change all strong entries with h2?I thought there is some function that chnages all posts automaticly from function.php
Forum: Fixing WordPress
In reply to: How to remove date archive pages?I dont use any plugin
Forum: Fixing WordPress
In reply to: How to use include php for more refferal linksThank you for your answer. Is there any way to hide specific referral links? Some sites use links like nameofthesite.com/custom-refferal-link/ instad of refferal link to specific site.
Forum: Fixing WordPress
In reply to: How to use include php for more refferal linksI want to make that without plugin.
Forum: Fixing WordPress
In reply to: How can I change wordpress posts display size?No. That’s not what I meant.I wanted that display of single posts is the same as it is, but different on the main page or whenever you use search. That means I need to change something else in theme php files. Maybe somewhere at index.php or post.php or function.php I don’t know.
- This reply was modified 7 years, 6 months ago by virmodrosti.
- This reply was modified 7 years, 6 months ago by virmodrosti.
- This reply was modified 7 years, 6 months ago by virmodrosti.