This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Text size in Toggles

  • Creator
    Topic
  • #12151
    davidcpa135
    Participant

    Using the toggle switch has been helpful on our site. They work fine but my question this. If the text within the toggled area is an 18pt font, (or larger) is there a way to make the font size in the toggle title the same size? I’ve tried some html in the [toggle] tag but it seems to have no effect.
    Any advice appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #12156
    Jason Bobich
    Keymaster

    You’d target the toggle titles with CSS from your Custom CSS or child theme’s CSS file.

    For CSS changes, it’s a good idea to use a tool like firebug or Google Chrome’s built-in developer tools to locate them and then put the edits either in your child theme or in the “Custom CSS” option on your theme options page.

    For example —

    .accordion-heading .accordion-toggle { ... }

    Also, here’s a helpful tutorial on how to use Firebug – http://vimeo.com/20917974. The only thing I’d suggest not doing is actually making edits to the theme’s CSS files, as it shows at the end of that video. However, the video serves as a good introduction to Firebug and how it can be used to find what CSS is effecting certain areas of your site without ever digging around in any files.

    #12167
    davidcpa135
    Participant

    Got it–almost

    found what I believe to be the right css file at framework\assets\css\themeblvd.css
    on a localhost set up I tested the following (basically inserting font size in various places to test )

    /* Toggles */
    .accordion-group-last,
    .tb-accordion {
    	margin-bottom: 20px;
    	font size=16pt;
    }
    .accordion-heading .accordion-toggle {
    	color: inherit;
    	-moz-border-radius: 4px;
    	-webkit-border-radius: 4px;
    	border-radius: 4px;
    	font size=16pt;
    }
    .accordion-heading .active-trigger {
    	-webkit-border-bottom-right-radius: 0;
    	-webkit-border-bottom-left-radius: 0;
    	-moz-border-radius-bottomright: 0;
    	-moz-border-radius-bottomleft: 0;
    	border-bottom-right-radius: 0;
    	border-bottom-left-radius: 0;
    	font size=16pt;
    }
    .accordion-heading .accordion-toggle:hover,
    .accordion-heading .accordion-toggle:focus {
    	background: #f5f5f5;
    	color: inherit;
    }
    .accordion-heading .accordion-toggle .switch-me {
    	margin-right: 5px;
    	font size=16pt;
    }

    doesn’t appear to be changing the title font of the toggle
    I’m self-taught on css-does this seem like the right approach?

    #12175
    Jason Bobich
    Keymaster

    So, it looks like you keep trying to do this to change the font size:

    font size=16pt;

    But this isn’t proper CSS syntax. In CSS, properties (i.e. like “font-size”) are formatted like this:

    example-property: value;

    What you’re trying to do should look more like this:

    .accordion-heading .accordion-toggle {
        font-size: 16px;
    }

    If you need help learning any kind of CSS property, just search for it here:

    http://www.w3schools.com

    For example, here’s all the information on changing the font-size:

    http://www.w3schools.com/cssref/pr_font_font-size.asp

Viewing 3 replies - 1 through 3 (of 3 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.