Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Huh? What do you mean by “restricted content”, Nikolay?

    Anyway, for Tim S and the developers: In case another data point is useful, here is a random email I got about 6 hours ago:

    Hello! A new answer is posted by JohnPaul B on Answer: Link: https://www.boldgrid.com/support/?post_type=answer&p=9763

    in reply to: Adding Another Column to the Header #23813

    Allow me to jump in – I’m just another user, but just yesterday I figured out exactly what you’re asking to do (in my case the theme is Hydra, but I suspect the structure is very similar). I don’t really understand Tim’s suggestion in functions.php, but my solution is as follows:

    1. Create a child theme, if you haven’t already done so.
    2. Copy from the parent theme the file templates/header/header.php into the same structure in the child theme – you’ll need to create the templates and header folders to build the structure. (Unfortunately, the theme editor in WordPress won’t show two levels deep, so you have to do this using FTP or the file manager in your hoster’s control panel.)
    3. In that new header.php file in your child theme, you’ll see <div> tags for each row, and then within each one there will be one, two, or three columns. In the Hydra theme, the site name/logo is the div with “header-6” and the social icon menu is “header-7”. Yours might be different, but if you can figure out the row you want to add to, you can create a new column <div> there.
    4. Note the classes called “col-md-[some number]” – you have to make sure that all the columns in each row add up to 12 – that’s the width ratios (how many 1/12 parts for each column), so you can arrange the widths to your liking.

    I hope that helps.

    in reply to: Removing the Gray Color Hover Feature for Images #23818

    Hi, Christopher. I am assisting Joseph with the technical aspects of this website, so I would be doing any custom JS. Can you please give me more details about where the JS code is that is causing the gray? Firebug doesn’t think there are any scripts on the page – that is, of course, ridiculous, as “show source” reveals some code in the page itself and about 15 calls to external JS files. But because Firebug won’t help me navigate it, I have no idea where to look. It will be far faster for you to tell me than for me to try to understand your code. And I don’t want to override it in a way that makes something else break, so please give me more guidance.

    in reply to: Hyrda: Translate logo image in Polylang? #23824

    Thank you for your reply. Your first link didn’t really point to a specific instruction, but just the index of a few “how to” articles, none of which were applicable. But doing more reading and digging, I tried three things:

    (1) I eventually found this page: https://polylang.pro/a-multilingual-custom-header-image/

    Following their instructions, I created a wp-content/polylang directory and put a wpml-config.xml in it with the following content:

    <wpml-config>
    <admin-texts>
    <key name=’theme_mods_boldgrid-hydra-child’>
    <key name=’header_image’ />
    </key>
    </admin-texts>
    </wpml-config>

    But its instructions don’t work for your theme. First, Step 3 is impossible because when BoldGrid is running, there is no Appearance menu in the admin area – your plugin replaces many of the standard WP menu items with special stuff. Secondly, if it should be assumed that I already have a header image set (because I can see one), Step 4 does not work – no string related to header images appears in Strings Translation. If you know how I should get this to work, this is the most preferred method, because future changes to images can be done within the WordPress interface, rather than having to use the hoster’s control panel or FTP. Perhaps it is as simple as changing one or both of the key names to match Hydra terms.

    (2) The next thing I tried was to copy templates/header/header.php into the same location of the child theme, and edit it. I can see where the logo goes (header-6), but I don’t know what I should replace `<?php do_action( ‘boldgrid-theme-location’, ‘header’, ‘6’ ); ?>` with, as I can only imagine what that function call does (somehow fetch the site title/tagline vs. logo image settings and then echo the appropriate HTML tag like <img>). If this is the method I should use, more instruction about what to put there would be helpful. Do I just hardcode a conditional based on the current language and two <img> tags? If so, future changes to the images cannot be done using the WordPress interface, because the image file path would change, so someone would have to always remember that the reference must be changed in header.php.

    (3) Finally, I tried to understand the instructions in your linked page about the BoldGrid config file, but I don’t think I did. In the child theme, I mimicked the path to config.php in the parent (…/inc/boldgrid-theme-framework-config), copied the config.php file from the parent, and edited it to have this:

    if (get_locale() == ‘en_US’) {
    $boldgrid_framework_configs[’template’][’header’] = ‘generic’;
    } else {
    $boldgrid_framework_configs[’template’][’header’] = ‘2’;
    }

    Then I created a templates/header/header-2.php file and made a visible modification to it. There was no reaction – header-2.php is not used when the locale was ja-JP.

    This seems like a simple thing, but it’s really turning out to be a challenge. I look forward to your continued help.

Viewing 4 posts - 1 through 4 (of 4 total)