Change Font Size

by 8 replies
9
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

#website design #change #font #size
  • 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.
    • [1] reply
    • 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???
  • 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.
  • 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.")
    ),
  • 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.
    • [1] reply
    • 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
  • 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?
    • [1] reply
    • I don't have 50 posts yet . Can you send to me and drop a email address. Thanks

Next Topics on Trending Feed

  • 9

    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