Durgé Seerden
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Need help with my footerYou need to just copy past the code from a normal sidebar but you have to give it a name property, the below code is from Dimics.com the left and center parts of our footer are actual sidebars, you have to copy past this into you functions.php and changes the names, and of course the other modifications like before and after:
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'name'=>'sidebar', //change this value 'before_widget' => '', 'after_widget' => '<div class="hr"></div><!--/HR-->', 'before_title' => '<h1>', 'after_title' => '</h1>', )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name'=>'footerleft', 'before_widget' => '', 'after_widget' => '<div class="hr"></div><!--/HR-->', 'before_title' => '<h1>', 'after_title' => '</h1>', )); if ( function_exists('register_sidebar') ) register_sidebar(array( 'name'=>'footercenter', 'before_widget' => '', 'after_widget' => '<div class="hr"></div><!--/HR-->', 'before_title' => '<h1>', 'after_title' => '</h1>', )); ?>
When you register the sidebar use:
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('footerleft') ) : ?> <?php endif; ?>
and of course change footerleft to the names you”ve chosen.
Hope this will help.
Greetz,
Durgé
Dimics.comForum: Fixing WordPress
In reply to: No link to older posts?You have to ad a line to your index.php. Go to Editor under the Appearance panel and select index.php in the right colum.
Then look for:<?php endif; ?>
after that line ad:<?php posts_nav_link(); ?>
Then click Update at the bottom of the page.I hope this will help.
Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: header only display correctly in firefox?Can you maybe send a link, that will give a lot more information about your problem.
Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Change look and also add google analytics and statcounter code?You could just download another theme: https://codex.www.ads-software.com/Using_Themes
Or you have to modify the style.css but then you have to have some basic css knowledge, or learn it.The google analytics code, must be placed in the footer.php Just before the </body> tag.
Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Navigation helpFor the active state ad the
.nav-<ul>yourpage</ul>-selected
class. In the above code you have to remove the class from the home button
<li><a href="index.php" class="nav-home">Home</a></li>
so that hasnt got the active state.For the not working links try to use the whole url instead of
href="portfolio"
use href=”https://iheartatlas.com/portfolio.html”.I wouldn’t recommend using static html pages instead i would use Custom page templates: https://codex.www.ads-software.com/Pages#Creating_Your_Own_Page_Templates
Then you can just use the basic wordpress tags to include header, footer, and if you want the sidebar. And you could modify the content.And the problems with your links would be fixed. You have to style a class
.current_page_item
because thats the defealt in wp for the active link.Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Increase paragraph spacing in theme via CSSYes that will work. You just selected the p tag inside the
.wpn_news .wpn_post
classes. I looked thru the stylesheet really quick and didn’t see it :p.Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Increase paragraph spacing in theme via CSSAdd
p {margin-bottom:20px;}
to your css file, you can change the 20px to the spacing you like.Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Need help with my footerThe code to register your sidebars has to be in the functions.php file.
If you don’t have a functions.php file just create one.Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Change page width at runtimeSorry wrong link, this one will work
https://www.shopdev.co.uk/blog/cookies-with-jquery-designing-collapsible-layouts/Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Change page width at runtimeTo achive this you have to use Javascript and i recommend jQuery to change the width of you div. But it will change back at reload. To let it remember the current size you have to use a cookie.
https://www.ads-software.com/extend/plugins/ajax-css-switcher/ This tutorial could help you. Instead of changing the display css property you have to use the width property of course.Or a much easier solution is to use the AJAX CSS Switcher plugin.
Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Can’t set static front pageDid you check the Static page selection round? It will not automaticly select static page if you select a page to be the homepage.
If that doesn’t work a quick solution is to copy the page.php/single.php file rename it to home.php and just html code it to be static, so change the php commands for the content into your static content.
Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: How can I add a link at the top?Go to the Permalinks inside the Settings panel and set it to Custom Structure. Use for example
/%category%/%postname%
for more information take a look at the codex page about this: https://codex.www.ads-software.com/Using_PermalinksGreetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: can’t get javascripts to workTry to use the full url to your js file. The wordpress index will not be in the theme folder it so it wont find your file.
So use something similar to this:https://www.breakingbeta.com/wp-content/themes/nameOfTheme/SpryAssets/SpryAccordion.js
I hope this will solve the problem.
Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: How to get the embed code from Vimeo ?Click on the embed button inside the video (right top corner). Than you can customize your player and get the embed code.
Greetz,
Durgé
Dimics.comForum: Themes and Templates
In reply to: Changing template from 2 column to 1 columnThe essiest way to achive this is to change
query_posts('showposts=1');
in your index.php file toquery_posts('showposts=1');
so there will only show one post. Then you have to change the css, look for#primary.twocol-stories .story{ float:left; width:48%; margin:0 0 0 4%; display:inline; }
and change it to
#primary.twocol-stories .story{ width:100%; margin:0 auto 0 auto; }
we set the width so it will fill the entire div and center it by setting the left and right margins to auto, not really necessary, but this will allow you to adjust the width.
If there are any images or otter things inside the post that have an specific width you have to change them in you css file.
I hope this will help.
Greetz,
Durgé
Dimics.com