Author Topic: Word press stuff  (Read 3851 times)

galumay

  • Administrator
  • dhunga
  • *****
  • Posts: 725
Word press stuff
« on: January 09, 2015, 07:28:26 AM »
I always seem to forget where stuff sits, so i wanted to turn the requirement for an email address back on in comments, because otherwise I have to approve every single comment which is a pain in the butt, took me a while to find where it was, but its in comments.php

The specific code is,
Code: [Select]
'email' => $email_field,
To disable i had used,
Code: [Select]
/*'email' => $email_field,*/

galumay

  • Administrator
  • dhunga
  • *****
  • Posts: 725
Re: Word press stuff
« Reply #1 on: May 29, 2015, 03:28:35 AM »
another issue was the descriptions on the images in the photo galleries, the width of the space where the description goes was too narrow, to widen you need to edit the css file, /public_html/wp-content/plugins/photo-galleria/js/themes/classic/galleria.classic.css

the width is in % rather than pixels so i increased it from 30% to 75%

Code: [Select]
.galleria-info {
    width: 75%;
    top: 5px;
    left: 15px;
    z-index: 2;
    position: absolute;

galumay

  • Administrator
  • dhunga
  • *****
  • Posts: 725
Re: Word press stuff
« Reply #2 on: June 22, 2015, 04:10:37 AM »
I wanted to clean up the blog, make the background white and have a better look allround.

Firstly changed the theme colour in Suffusion options from grey shade 1 on a light theme to minima
then i changed the background colour in the customising panel to #ffffff or white. (it was #3b3b3b)

the original grey colour around the photo galleries
Code: [Select]
.galleria-container {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

the original colour for the text box as above
Code: [Select]
.galleria-info-text {
    background-color: #f5f5f5;
    padding: 3px;
    display: none;
    /* IE7 */ zoom:1;

in the style.css file for the suffusion theme, changed padding left to 0px to align with text and images on page
Code: [Select]
.title-container {
padding-left: 58px;
/*padding-right: 10px;*/
}
« Last Edit: June 25, 2015, 08:56:54 PM by galumay »

galumay

  • Administrator
  • dhunga
  • *****
  • Posts: 725
Re: Word press stuff
« Reply #3 on: June 25, 2015, 08:49:45 PM »
Ok, today i wanted to edit the Meta Widget to remove the title, entries & comments RSS links and just have a single log in link on my bottom sidebar. So i added Meta widget to position three in the lower sidebar and then edited the file in wp_includes/default-widgets.php which is where it lives.

Note - it will have to be updated when WP updates as the includes folder will change.

So its easiest to explain by saying i overwrote the entire meta section of the file with this code, (should be from line 390 onwards)

Code: [Select]
class WP_Widget_Meta extends WP_Widget {

public function __construct() {
$widget_ops = array('classname' => 'widget_meta', 'description' => __( " ") );
parent::__construct('meta', __('meta'), $widget_ops);
}

public function widget( $args, $instance ) {

/** This filter is documented in wp-includes/default-widgets.php */

echo $args['before_widget'];
if ( $title ) {
echo $args['before_title'] . $title . $args['after_title'];
}

?>
<ul class="quick_loginout">
    <li class="first"><?php wp_loginout(); ?></li>
    <?php wp_register('<li class="last">'); ?>
</ul>


<?php


}
}

galumay

  • Administrator
  • dhunga
  • *****
  • Posts: 725
Re: Word press stuff
« Reply #4 on: June 26, 2015, 01:35:41 AM »
it maybe better in the footer which means adding to the site-footer.php

Code: [Select]
<ul class="quick_loginout">
    <li class="first"><?php wp_loginout(); ?></li>
    <?php wp_register('<li class="last">'); ?>
</ul>

EDIT_ ok that sucks either in the widget sidebar or the footer form, as it still links back to the full login page. Much neater solution was the plugin, "Place Login" which has one simple line of code once installed, that you can paste in the site-footer.php and it works perfectly, cleaned it up a bit in the css files which reside in the plugin folder on wp-contents. (past it in right at the end.)
« Last Edit: April 26, 2018, 03:21:29 PM by galumay »

galumay

  • Administrator
  • dhunga
  • *****
  • Posts: 725
Re: Word press stuff
« Reply #5 on: November 11, 2017, 04:05:51 PM »
adding vimeo videos...

Code: [Select]
[vimeo clip_id="228636215" height="" width="900"]