8 replies
  • WEB DESIGN
  • |
Can somebody show me where to put this code in the sidebar.php?
Below is the directions. I tried but ended up with a syntax error. This is to make the fonts a larger size. Thanks

Add this code to the theme's file where you want the font size selection appear, for example, on the sidebar.php file:

<?php chgfontsize_display_options(); ?>
#change #font #size
  • Profile picture of the author rwil02
    Can you post the message the syntax error shows? It would help decipher the problem.

    And the source from 1-2 lines above and below where you added it.

    you might need to attach it, or replace the < with [ to get it to post here.
    Signature

    Roger Willcocks
    L-Space Design
    Please vote to help me win a 3kW solar array

    {{ DiscussionBoard.errors[2604505].message }}
    • Profile picture of the author Power User
      Thanks for the fast responce. I have corrected the error. Sorry I did not explain. The code above goes in the sidebar.php. I caused the syntax error by not posting correctly. I am trying to change the widget size as they are to small now with the default. I need to know where to insert it at. In the top or bottom of each widget or anywhere in the sidebar.php???
      {{ DiscussionBoard.errors[2604557].message }}
  • Profile picture of the author rwil02
    The most likely cause is that you have placed the code in between some other pieces of code such that it won't compile.

    Hence why I asked if you could post the section of code, including a couple of lines each side.

    Once I can see something, I can probably show you the fix in a minute or two.
    Signature

    Roger Willcocks
    L-Space Design
    Please vote to help me win a 3kW solar array

    {{ DiscussionBoard.errors[2604614].message }}
  • Profile picture of the author Power User
    Sorry I didn't understand.Here is the sidebar code.I put it right above the word secondary. I am trying to enlarge the print on the sidebar to stand out more This is supposed to do this but I am not sure how yet. Any help would be killer. Thanks

    <?php
    // tokens
    $ew = '<!-- end_widget -->';
    $bt = '<!-- begin_title -->';
    $et = '<!-- end_title -->';
    $bi = '<!-- begin_id -->';
    $ei = '<!-- end_id -->';
    $bc = '<!-- begin_class -->';
    $ec = '<!-- end_class -->';

    $sidebars = array(

    'default' => array(
    'name' => __('Primary Widget Area','kubrick'),
    'id' => 'primary-widget-area',
    'description' => __("This is the default sidebar, visible on 2 or 3 column layouts. If no widgets are active, the default theme widgets will be displayed instead.")
    ),

    This is where I put it at.

    'secondary' => array(
    'name' => __('Secondary Widget Area','kubrick'),
    'id' => 'secondary-widget-area',
    'description' => __("This sidebar is active only on a 3 column setup.")
    ),
    {{ DiscussionBoard.errors[2608210].message }}
  • Profile picture of the author rwil02
    THat's the problem.
    see the ',' just above?
    that's a separator between elements in an array, so you were adding it with code that was already trying to run.

    You need to put it just before the < ?php at the top of that code, or
    just after the match ? > at the end.
    Signature

    Roger Willcocks
    L-Space Design
    Please vote to help me win a 3kW solar array

    {{ DiscussionBoard.errors[2612548].message }}
    • Profile picture of the author Power User
      Well that was it and it works. But that was not what I thought it was. I want to have a larger font inside the widgets so it stands out more. Is there a plug in or add on to do this. If not then I guess I am stuck with that size. Thanks
      {{ DiscussionBoard.errors[2613164].message }}
  • Profile picture of the author rwil02
    Then you probably need to modify the CSS for the theme you are using.

    Can you post a link to the site? If not, can you PM it to me?
    Signature

    Roger Willcocks
    L-Space Design
    Please vote to help me win a 3kW solar array

    {{ DiscussionBoard.errors[2613434].message }}
    • Profile picture of the author Power User
      I don't have 50 posts yet . Can you send to me and drop a email address. Thanks
      {{ DiscussionBoard.errors[2613460].message }}

Trending Topics