Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)
  • Forum: Fixing WordPress
    In reply to: Reverse post order
    Thread Starter rondebbs

    (@rondebbs)

    I added the following line before the loop in index.php. Works good. I’m surprised WordPress does not have some simple way in the GUI to toggle between ASC and DESC.

    <?php get_header(); query_posts($query_string . “&order=ASC”); ?>

    Thread Starter rondebbs

    (@rondebbs)

    ok thanks

    Forum: Fixing WordPress
    In reply to: Reverse post order
    Thread Starter rondebbs

    (@rondebbs)

    Ok, I have created the child theme and located the Loop in the original index.php. I guess I just add the $query statement below some where in the loop of my child theme. Can I put it as the first statement right after /* Start the Loop */?>

    $query = new WP_Query( array ( 'order' => 'DESC' ) );

    <?php /* Start the Loop */ ?>
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', get_post_format() ); ?>
    			<?php endwhile; ?>
    
    			<?php twentytwelve_content_nav( 'nav-below' ); ?>
    
    		<?php else : ?>
    
    			<article id="post-0" class="post no-results not-found">
    Thread Starter rondebbs

    (@rondebbs)

    It’s on the dashboard under recent comments. But I guess that old version doesn’t matter much now. Is there a way to manage incoming links with WordPress 4?

    Forum: Fixing WordPress
    In reply to: Reverse post order
    Thread Starter rondebbs

    (@rondebbs)

    Yes, I will make a child theme and make any needed changes if you can point me to the correct .php file and what should be changed. Also, I just switched to the 2012 theme for now as I bought a book that covers that theme. Thanks for your help.

    Forum: Fixing WordPress
    In reply to: Reverse post order
    Thread Starter rondebbs

    (@rondebbs)

    I should have noted that I am using the 2014 theme.

    Thread Starter rondebbs

    (@rondebbs)

    Thank you

    Thread Starter rondebbs

    (@rondebbs)

    My link is ocbestlegal.com`. I made some changes to styles.css to shrink the length of the Contact Us and How can we help you form but I’m still trying to shrink some of the excess white space out of the right sidebar. There is a lot of extra space between the Name and Email fields (Ninja form). Also a lot of wasted space around the submit button. I want to compress the right side so users won’t have to do so much scrolling.

    Thanks so much.

    Thread Starter rondebbs

    (@rondebbs)

    Thanks for the info. I was able to go into appearance -> widgets to get rid of the un-needed fields in my side bar. I am using the Graphene Theme and was able to edit the style.css and change the font and margin for the Header Title and Header Description (created a child theme). I looked through the codex docs but could not find a way to change font size and padding on the sidebar info. Basically I want to change the font and padding on the Headings in the right Sidebar (I only have the one sidebar). I have looked at the sidebar.php files but can’t find anything in there. I guess I don’t know which file I should look at to make those changes. Now I’m thinking it might be in the style.css. Below is the code related to sidebars from style.css. Any idea where I should make the change?

    /* =Sidebars
    -------------------------------------------------------------- */
    
    #sidebar1,
    #sidebar2 {
    	display: inline;
    	float: left;
    	margin-top: 4px;
    	padding-bottom: 30px;
    }
    #sidebar2 {
    	padding-left: 0;
    }
    .sidebar h3 {
    	background: url(images/bg-sidebar-h3.png) left bottom repeat-x #3C9CD2;
    	background: -moz-linear-gradient(#3C9CD2, #1F6EB6);
    	background: -webkit-linear-gradient(#3C9CD2, #1F6EB6);
    	background: -o-linear-gradient(#3C9CD2, #1F6EB6);
    	-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorStr='#3C9CD2', EndColorStr='#1F6EB6')";
    	background: linear-gradient(#3C9CD2, #1F6EB6);
    	border-bottom: 1px solid #195392;
    	-moz-border-radius: 5px 5px 0 0;
    	-webkit-border-radius: 5px 5px 0 0;
    	border-radius: 5px 5px 0 0;
    	color: #fff;
    	*display: inline;
    	font: 18px/20px "Pontano Sans", arial, sans-serif;
    	margin: -15px 0 5px -12px;
    	padding: 7px 12px;
    	text-shadow: 0 -1px 0 #333;
    	width: 100%;
    	zoom: 1;
    }
    .sidebar > .warning_block {
    	margin-top: -4px;
    }
    .sidebar > .warning_block p {
    	margin-top: 10px;
    	font-size: 11px;
    	line-height: 16px;
    }
    .sidebar > .warning_block .first-p {
    	margin-top: 0;
    }
    .sidebar h3 a,
    .sidebar h3 a:visited,
    .sidebar h3 a:hover {
    	color: #fff;
    }
    .sidebar div.sidebar-wrap {
    	background: #fff;
    	-moz-box-shadow: 0 0 5px #bbb;
    	-webkit-box-shadow: 0 0 5px #bbb;
    	box-shadow: 0 0 5px #bbb;
    	-moz-box-shadow: 0 0 5px rgba(0,0,0,0.15);
    	-webkit-box-shadow: 0 0 5px rgba(0,0,0,0.15);
    	box-shadow: 0 0 5px rgba(0,0,0,0.15);
    	margin-bottom: 16px;
    	padding: 10px 12px;
    	position: relative;
    }
    .sidebar #tweetfollow {
    	margin-top: 10px;
    	text-align: right;
    }
    .tweet-rel-time {
    	font-size: 85%;
    }
    #sidebar_bottom {
    	background: #E3E3E3;
    	clear: both;
    	margin-top: -10px;
    	padding: 0 0 20px 0;
    	font-size: 0;
    }
    #sidebar_bottom .sidebar-wrap {
    	display: inline-block;
    	*display: inline;
    	margin: 10px 10px 5px;
    	padding: 10px;
    	vertical-align: top;
    	width: 280px;
    	zoom: 1;
    	font-size: 12px;
    }
    #sidebar_bottom .sidebar-wrap h3 {
    	-moz-border-radius: 0;
    	-webkit-border-radius: 0;
    	border-radius: 0;
    	margin: -10px -10px 10px -10px;
    	padding: 7px 10px;
    	width: 100%;
    	height: auto;
    }
    #calendar_wrap {
    	text-align: center;
    }
    #wp-calendar {
    	border-collapse: collapse;
    	margin: 0 auto;
    }
    #wp-calendar #today {
    	font-weight: bold;
    }
    #wp-calendar td,
    #wp-calendar th {
    	padding: 3px 4px;
    }
    #wp-calendar #prev {
    	text-align: left;
    }
    #wp-calendar #next {
    	text-align: right;
    }
    .sidebar ol {
    	list-style-position: outside;
    	margin-left: 29px;
    }
    .sidebar ol ol {
    	list-style-type: lower-alpha;
    	margin-left: 20px;
    }
    .sidebar ul ul {
    	margin-left: 20px;
    }
    .sidebar ol ol ol {
    	list-style-type: lower-roman;
    }
    .sidebar ol li {
    	line-height: 15px;
    	padding: 2px 0;
    }
    .sidebar ul ul li {
    	border: none;
    }
    .sidebar ul ul li {
    	line-height: 15px;
    }
    .sidebar p {
    	line-height: 18px;
    }
    .sidebar p img {
    	border: 4px solid #dedede;
    }
    .sidebar ul {
    	list-style-position: outside;
    	list-style-type: none;
    }
    .sidebar ul li {
    	border-bottom: 1px solid #f5f5f5;
    	line-height: 15px;
    	padding: 6px 0;
    }
    .sidebar ul li img,
    .sidebar ol li img {
    	display: inline;
    	margin: 0 2px;
    	vertical-align: middle;
    }
    .sidebar ul li span.meta-rss {
    	display: inline-block;
    	width: 0px;
    	height: 16px;
    }

    Thread Starter rondebbs

    (@rondebbs)

    Thanks so much for your help. I really learned a lot.

    Thread Starter rondebbs

    (@rondebbs)

    Wow that helps so much. I have placed the loop-page.php in my child theme and added the code below. Now this text displays on each page as desired. One last thing – the second sentence “Call us today” should start on a new line but it does not. I tried using “\n”; but it does not seem to work. Any ideas?

    <p>
    We can provide excellent attorneys with affordable fees for court appearances if needed."\n";
    Call us today at (714) 454-9292.  Email us at <a href="mailto:nn@ocparalegalservices.com">nn@ocparalegalservices.com</a>.
    We specialize in Divorce, Immigration, Legal Document Services, Probate and more.
    </p>
    Thread Starter rondebbs

    (@rondebbs)

    Here is the line of code I added to the_post with back ticks.
    Email us at <a href="mailto:nn@ocparalegalservices.com">nn@ocparalegalservices.com</a>.

    Thanks again, Brad

    Thread Starter rondebbs

    (@rondebbs)

    Thanks again for the great help. I looked on my server at /home/ocparalegalservices/public_html/wp-content/themes/graphene. I could not find a file called content-page.php but I did find page.php. I copied it into my child theme Graphene-Brad3. I located “the_post()” and added my Email line to that (see below). I tried putting it above and below the line that says “the_post”. It seems when I saved it and refreshed my web page I just got a blank white screen. If I comment out my Email line then it displays the page like it used to.

    `<?php
    /**
    * The Template for displaying all single pages.
    */

    get_header(); ?>

    <?php
    /* Run the loop to output the pages.
    * If you want to overload this in a child theme then include a file
    * called loop-page.php and that will be used instead.
    */
    the_post();
    get_template_part( ‘loop’, ‘page’ );
    Email us at nn@ocparalegalservices.com. ?>

    <?php get_footer(); ?>

    Thread Starter rondebbs

    (@rondebbs)

    Thanks for that plugin and I will check it out. I am trying to lean about code (html, css, php). Is there a way that I can add this custom code manually so that it is put on each page? Any exercise that would help me learn coding would be great. Thanks again for all the help. Brad

    Thread Starter rondebbs

    (@rondebbs)

    Luke, thanks so much for your help on this. I’m not a coder so your help is very much appreciated. I am using the Graphene theme and I created a child theme called Graphene-Brad3. I put you CSS code in the child theme and everything worked great. The Graphene theme seems so huge with so many files it is hard for me to find anything. I’m guessing the Graphene theme is using a body font size of about 12px. I changed my child theme to 14px and that seems to be good.

    I have another question. On each of my static pages I have inserted the same Call Us and Email us info below at the bottom of each page.

    ‘Call us today at (714) 454-9292.  Email us at nn@ocparalegalservices.com.
    We specialize in Divorce, Immigration, Legal Document Services, Probate and more.’

    Is there a simple way that I can have this code in one place and have it automatically appear on all pages? Right now when I revise the info I have to go and change it on every page. Thanks again for the great help.

Viewing 15 replies - 1 through 15 (of 17 total)